For making one of my tools easier to work with, I’ve divided it into different files for each class. they are all in the same folder
Python documentation states:
When a module named spam is imported,
the interpreter searches for a file named spam.py in the directory containing the input script
and then in the list of directories specified by the environment variable PYTHONPATH.
but when i try to import my different files as modules inside of motionbuilder, it fails:
ImportError: No module named baseClass
trying to do os.getcwd() to make sure i’m in the same folder as the script, it returns the correct folder.
I don’t want to add the folder to my PATH env variable just to import it.
Trying this in IDLE IDE it works…
Any suggestions?