Problems with import of modules
Ilias Lazaridis
ilias at lazaridis.com
Mon Jan 23 13:48:33 EST 2006
I am within a directory
\doc\template\
I launch script.py
within this script.py, I like to import a module from the doc directory.
this here does not work:
form ..\..\module_name import this_one
how do I go back in the directory hierarchy to import something?
If this is not possible:
How can I modify the python search-path from within the script, thus it
contains the doc directory?
.
--
http://lazaridis.com
More information about the Python-list
mailing list