added example with import
This commit is contained in:
10
scripts/example-with-import.py
Executable file
10
scripts/example-with-import.py
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
print("running example with import")
|
||||
|
||||
from some_lib import some_var
|
||||
|
||||
print(some_var)
|
||||
|
||||
|
||||
|
6
scripts/some_lib.py
Normal file
6
scripts/some_lib.py
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
some_var = "some thing"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user