On Aug 23, 1:46 pm, jmborr <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list