patch [#27205] Infinite recursion inside resolve_ncase() when passed a driver letter...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 6 May 2011 11:27:04 +0000 (11:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 6 May 2011 11:27:04 +0000 (11:27 +0000)
by Brandon Ehle (azverkan)

release/scripts/modules/bpy/path.py

index 9a29b713882b5985152712756dc9f9fa3c88779c..f7e5b988cc8e3e80b5a313dc4c6229aea3eac668 100644 (file)
@@ -144,6 +144,9 @@ def resolve_ncase(path):
             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: