scope - Python module visiable only in iPython -
i have used set pythonpath=%pythonpath%;dictionary_containing_modules
make modules globaly visiable.
i have script importing modules import my_module
.
when run script ipython shell (run my_script.py
), no errors , script runs intended, when run script command promt (windows) python my_script.py
error:
importerror: no module named my_module
i checked pwd
use same working directory.
remember can dynamically change system path within script, using sys.path
or site
module. maybe want add them script...
or maybe want write bat or python launcher script sets pythonpath...
or want edit windows environment variables (somewhere inside system properties win+break).
Comments
Post a Comment