I want to import a file from %appdata%/.EliteCS/sysfiles/gui.py
however whenever I do, this comes up.
Traceback (most recent call last):
File "C:\Users\Samuel\Documents\Elite\elite_computer_system.py", line 10, in <
module>
import gui
ImportError: No module named gui
C:\Users\Samuel\Documents\Elite>pause
Press any key to continue . . .
My %appdata%/.EliteCS/sysfiles/
folder contains 2 files: __init__.py
(empty py file) and gui.py, a py file full of definitions, but no actual code. When asking python to import it thus:
sys.path.insert(0, '%appdata%/.EliteCS/sysfiles')
import gui
it gives the error, same for from gui import *
instead of the import gui line.
Would someone please tell me what I am doing wrong. I can't work out what's wrong.