how to select between two file libraries with same name?

Jose Borreguero borreguero at gmail.com
Thu Aug 23 20:44:03 CEST 2007


Imagine my file one.py contains the statement
import two
If there's a two.py in same directory as one.py, then this file will be
loaded. However, I want to load a different file named also two.py, say file
~username/mypythonlib/two.py
How can I select between the two two.py files ?

-jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070823/1992c25f/attachment.html>


More information about the Python-list mailing list