how to select between two file libraries with same name?
kyosohma at gmail.com
kyosohma at gmail.com
Thu Aug 23 15:18:14 EDT 2007
On Aug 23, 1:46 pm, jmborr <borregu... at gmail.com> wrote:
> 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
This kind of thing has been discussed before. See below:
http://mail.python.org/pipermail/python-list/2002-October/167055.html
The basic idea is not to do this. Fix your code so that you never have
this problem through code refactoring.
Mike
More information about the Python-list
mailing list