Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to select between two file libraries with same name?

0 views
Skip to first unread message

jmborr

unread,
Aug 23, 2007, 2:46:47 PM8/23/07
to
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

kyos...@gmail.com

unread,
Aug 23, 2007, 3:18:14 PM8/23/07
to

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

0 new messages