script.py
/folder1/module.py
script.py imports module.py
so in my script.py i put
from folder1.module import module (the thing i want to import)
then i cmd and cd to the directory and python script.py
no problem so far, works perfectly
but when i cmd and straight up put python f:dir1/dir2/dir3/script.py
suddenly its not able to find module.py and it tells me "module not found"
This post has been edited by FLampard: Jul 24 2023, 02:48 PM
Jul 24 2023, 02:45 PM, updated 3y ago
Quote
0.0152sec
0.81
5 queries
GZIP Disabled