Python Forum

Full Version: Help on ModuleNotFoundError
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I cant seem to get import commands to work unless I'm working from the same folder as the file I want to import. What is puzzling is that sys.path lists the directory i want to target, in which I have even created the __init__.py file, yet the import statement is red-lined by the editor and the run fails. Can someone shed some light on what may be causing this behaviour?

Thank you