ScriptRunner: Cannot import modules when other directories
nilbro opened this issue · comments
Nilabhra Patra commented
I am trying to run the pipeline via the ScriptRunner and am not able to import modules from other directories.
My current project structure looks like this:
└── project/
├── common/
│ └── lib
├── file1.py --> want to import common.lib here
├── file2.py
└── pipeline.yaml
Adding the project to the sys.path fixes this issues.
Note: This behaviour is not observed with the default NotebookRunner.
Eduardo Blancas commented
thanks for your feedback, we'll get to it!
eromoe commented
I have same requetst . Now I have to use sys.path.insert in every script .
Eduardo Blancas commented
@mehtamohit013 will work on this, so it will be fixed in the next version!
Ido M commented
Ido M commented
Nilabhra Patra commented
Thanks