[New-bugs-announce] [issue3677] importing from UNC roots doesn't work

Kristján Valur Jónsson report at bugs.python.org
Mon Aug 25 17:00:28 CEST 2008

New submission from Kristján Valur Jónsson <kristjan at ccpgames.com>:

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 

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!

components: Interpreter Core
messages: 71932
nosy: krisvale
priority: normal
severity: normal
status: open
title: importing from UNC roots doesn't work
type: behavior
versions: Python 2.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list