I have hundreds of startup scripts in the root of my project, and they all use tools from the "tools" folder. It has become challenging to locate the specific startup script I need, so I want to organize some of the startup scripts into subfolders. However, when I move a startup script to a subfolder, I encounter an error when trying to import tools using from ..tools.test_tool import TestTool
.
The error message is:
ImportError: attempted relative import with no known parent package
Is there a way to move the startup script to a subfolder while still allowing it to access the tools (and how)? Or do all startup scripts have to remain in the root folder? I'm specifically looking for a yes or no answer to this question, rather than a general explanation of how relative paths work.