Changeset 1494
- Timestamp:
- 07/11/08 19:36:34 (7 weeks ago)
- Files:
-
- 1 modified
-
trunk/peppy/buffers.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/peppy/buffers.py
r1485 r1494 217 217 path = os.path.normpath(os.path.dirname(unicode(url.path))) 218 218 else: 219 # See if the path converts to an existing path in the local220 # filesystem by converting it to a file:// url and seeing if any221 # path components exist219 # If it's an absolute path, see if it converts to an existing path 220 # in the local filesystem by converting it to a file:// url and 221 # seeing if any path components exist 222 222 lastpath = None 223 temp = unicode(url.path) 224 if not temp.startswith('/'): 225 return '/' 223 226 uri = vfs.normalize(unicode(url.path)) 224 227 path = os.path.normpath(unicode(uri.path)) 225 228 while path != lastpath and path != '/': 226 #dprint("trying %s" % path)229 dprint("trying %s" % path) 227 230 if os.path.isdir(path): 228 231 break … … 256 259 257 260 if path == '/': 258 path = os.getcwd()261 path = wx.StandardPaths.Get().GetDocumentsDir() 259 262 return path 260 263
