forked from bartvdbraak/blender
patch [#27205] Infinite recursion inside resolve_ncase() when passed a driver letter on Windows that does not exist
by Brandon Ehle (azverkan)
This commit is contained in:
parent
576035f9e1
commit
e26b0c68a4
@ -144,6 +144,9 @@ def resolve_ncase(path):
|
|||||||
dirpath = os.path.dirname(dirpath)
|
dirpath = os.path.dirname(dirpath)
|
||||||
|
|
||||||
if not os.path.exists(dirpath):
|
if not os.path.exists(dirpath):
|
||||||
|
if dirpath == path:
|
||||||
|
return path, False
|
||||||
|
|
||||||
dirpath, found = _ncase_path_found(dirpath)
|
dirpath, found = _ncase_path_found(dirpath)
|
||||||
|
|
||||||
if not found:
|
if not found:
|
||||||
|
Loading…
Reference in New Issue
Block a user