[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36514] trunk/blender/release/scripts/ modules/bpy/path.py: patch [#27205] Infinite recursion inside resolve_ncase () when passed a driver letter on Windows that does not exist

Campbell Barton ideasman42 at gmail.com
Fri May 6 13:27:05 CEST 2011


Revision: 36514
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36514
Author:   campbellbarton
Date:     2011-05-06 11:27:04 +0000 (Fri, 06 May 2011)
Log Message:
-----------
patch [#27205] Infinite recursion inside resolve_ncase() when passed a driver letter on Windows that does not exist
by Brandon Ehle (azverkan)

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/bpy/path.py

Modified: trunk/blender/release/scripts/modules/bpy/path.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/path.py	2011-05-06 11:03:09 UTC (rev 36513)
+++ trunk/blender/release/scripts/modules/bpy/path.py	2011-05-06 11:27:04 UTC (rev 36514)
@@ -144,6 +144,9 @@
             dirpath = os.path.dirname(dirpath)
 
         if not os.path.exists(dirpath):
+            if dirpath == path:
+                return path, False
+
             dirpath, found = _ncase_path_found(dirpath)
 
             if not found:




More information about the Bf-blender-cvs mailing list