diff --git a/code/scripts/run.py b/code/scripts/run.py index e69de29..b92417d 100644 --- a/code/scripts/run.py +++ b/code/scripts/run.py @@ -0,0 +1,4 @@ +import sys +sys.path.insert(0,'/code/src'). #the 0 means ... do this in order, this first (I guess highest priority if have multiple variables or functions named the same thing) +from package.module import variable #that is tricky! here the .module seems to mean subfolder. Apparently sometimes use the . to indicate linking to a function within module as well +print(variable) \ No newline at end of file diff --git a/code/src/package/__init__.py b/code/src/package/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/code/src/package/module.py b/code/src/package/module.py new file mode 100644 index 0000000..5080498 --- /dev/null +++ b/code/src/package/module.py @@ -0,0 +1,2 @@ + +variable="heeeeelp!" \ No newline at end of file