Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-06 15:27:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-06 15:27:04 +0400
commite26b0c68a4c6e284e2d5690588fc7dad6e7a8112 (patch)
treec44eca3d21de7e123781fda07537282021eb2785 /release/scripts/modules/bpy
parent576035f9e1080198367be6742309bdda680540d0 (diff)
patch [#27205] Infinite recursion inside resolve_ncase() when passed a driver letter on Windows that does not exist
by Brandon Ehle (azverkan)
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r--release/scripts/modules/bpy/path.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy/path.py b/release/scripts/modules/bpy/path.py
index 9a29b713882..f7e5b988cc8 100644
--- a/release/scripts/modules/bpy/path.py
+++ b/release/scripts/modules/bpy/path.py
@@ -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: