Forum Archive

Folders cannot be found

Dalorbi39

Whenever i try and access a script that requires a user made module in a different folder other than the root folder the app gives me an import error: no module named module test, my solution is to append it into the sys.path list, but i dont think its a good idea to do that.

omz

Well, that's just how Python's import statement works, there's absolutely nothing wrong with modifying sys.path.

Dalorbi39

okay thanks, is there any permanent way to do this other than just appending it at the top of my script?

omz

No, that's not possible right now.