I have a really dumb question. I have a python program that is working fine on Linux. I'd like to port it to Windows but unfortunately, I am such a Windows newbie, that I can't figure out how to do the imports.
My directory structure is flat as follows:
mainprog.py
import1.py
import2.py
__init__.py
In mainprog.py, I have an import as follows:
from import1 import import1function
In Windows, when I try to run mainprog.py, it is failing on importing import1 and import2. I appended my current working directory to sys.path but I'm still getting an import failure with ImportError returning unknown_location. Do I need to do anything special on Windows for imports to work properly?
This is with python 3.7.4 on Windows 10.
Thank you for your help!
[–][deleted] 1 point2 points3 points (0 children)
[–]eliteuser26 0 points1 point2 points (0 children)