Message145650
It's fairly easy to check this is still a problem:
$ ./python
Python 3.3.0a0 (default:a06ef7ab7321, Sep 22 2011, 13:41:29)
[GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import setup
>>> setup.__file__
'setup.py'
That's a relative path rather than an absolute one. If you edit sys.path to use '.' instead of '', it becomes clear that the import machinery is just doing a blind join of the sys.path entry with the relative location of the file:
>>> del sys.modules['setup']
>>> sys.path[0] = '.'
>>> import setup
>>> setup.__file__
'./setup.py' |
|
Date |
User |
Action |
Args |
2011-10-16 23:01:05 | ncoghlan | set | recipients:
+ ncoghlan, gvanrossum, jhylton, brett.cannon, prescod, glchapman, terry.reedy, isandler |
2011-10-16 23:01:05 | ncoghlan | set | messageid: <1318806065.09.0.441157196829.issue415492@psf.upfronthosting.co.za> |
2011-10-16 23:01:04 | ncoghlan | link | issue415492 messages |
2011-10-16 23:01:04 | ncoghlan | create | |
|