Message153656
An empty sys.path string means the current directory in relative terms:
$ touch foo.py
$ python3 -c "import foo; print(foo.__file__)"
foo.py
But importlib uses os.getcwd() instead in PathFinder._path_importer_cache(). This impacts semantics of path searching, as well as the values of __file__ and __cached__ attributes. |
|
Date |
User |
Action |
Args |
2012-02-18 20:38:47 | pitrou | set | recipients:
+ pitrou, brett.cannon |
2012-02-18 20:38:47 | pitrou | set | messageid: <1329597527.35.0.680600221226.issue14052@psf.upfronthosting.co.za> |
2012-02-18 20:38:46 | pitrou | link | issue14052 messages |
2012-02-18 20:38:46 | pitrou | create | |
|