Message153656
| Author |
pitrou |
| Recipients |
brett.cannon, pitrou |
| Date |
2012年02月18日.20:38:46 |
| SpamBayes Score |
1.0374215e-05 |
| Marked as misclassified |
No |
| Message-id |
<1329597527.35.0.680600221226.issue14052@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|