Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I thought of this, but as I would like to import many helpers from different repositories in the future, which makes this solution not that convenient. Commented Dec 3, 2019 at 2:47
  • I cannot make comment under other messages but you say that making __init__.py files doesn't resolve your problem. Can you print the sys.path variable when you run a task file ? and what did you write on your __init__.py ? Commented Dec 3, 2019 at 11:06
  • When I tried with __init__.py the files where empty. should I put anything inside them? and sys.path printed a list containing [PATH_TO_TASK_FILE, SOME_PYTHON_3.7_STUFF], do you want to know more of what is in the sys.path? Commented Dec 3, 2019 at 13:44
  • you should read about the __init__.py files and the module name search logic in python. like this subect. sometimes you just have to change the directories organisation. Commented Dec 3, 2019 at 14:09
  • It seems odd that I have to change my directories, but I really like the structure of my project so I will not change my directories. I also found a solution which I will publish as an answer soon. Commented Dec 3, 2019 at 16:01