import from file not on the PYTHONPATH
staetzsc at my-deja.com
staetzsc at my-deja.com
Wed Aug 9 15:44:27 EDT 2000
Is there a way to specify a path for the file that a module is located
in?
something like:
import '/dir1/dir2/mymodule.py'
I am writing some scripts that will be located in different directories,
but will use some common functions/classes. The people using these
scripts are not python users, so they will not have a path setup and I
don't have write priveleges to where the python modules are.
I'm pretty new to python, so I am scared that this is a really dumb
question :-)
Thanks,
Steve
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list