I have a Python directory like this, and I am trying to import classes from main_script.py.
- main_folder
- main_script.py
- resources
- package_folder
- class_files
- class1.py
- class2.py
- class3.py
- __init__.py
This is what I tried
sys.path.append('../resources/package_folder)
from class_files import *
But I get this error, "No module named 'class_files'"
main_script.pyis located.sys.pathbut I got a bunch of things, hard to pinpoint what the working directory is.