Oct-30-2020, 05:47 PM
What's your file structure? Where is replaceLineInFiles.py compared to the file you're running? You're correct, I wouldn't expect any major differences with how the imports are run.
How are you invoking the different versions of python? Is there any chance you have a wrapper for one of them that sets PYTHONPATH with the location of your module?
In both versions of python run:
How are you invoking the different versions of python? Is there any chance you have a wrapper for one of them that sets PYTHONPATH with the location of your module?
In both versions of python run:
import sys print(sys.path)Are they the same? Is the location of the module in the 3.5 path but not the 3.8 path?