Message71932
| Author |
kristjan.jonsson |
| Recipients |
kristjan.jonsson |
| Date |
2008年08月25日.15:00:24 |
| SpamBayes Score |
0.025294345 |
| Marked as misclassified |
No |
| Message-id |
<1219676428.29.0.220923454973.issue3677@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When executing a script from a UNC path, e.g. //myhost/exports/a.py,
r"\\myhost\exports" gets prepended to sys.path. But it doesn't work.
This means that in a.py, "import b" will fail even though b.py is
present in the same directory.
The workaround is to manually prepend a backslass to the UNC path in
sys.path.
Note the related defect: http://bugs.python.org/issue954115
This intdoruces two functions for testing UNC paths, but it appears
that these functions are nowhere used! |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年08月25日 15:00:28 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
| 2008年08月25日 15:00:28 | kristjan.jonsson | set | messageid: <1219676428.29.0.220923454973.issue3677@psf.upfronthosting.co.za> |
| 2008年08月25日 15:00:26 | kristjan.jonsson | link | issue3677 messages |
| 2008年08月25日 15:00:24 | kristjan.jonsson | create |
|