We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7fdcdb commit b0bf2daCopy full SHA for b0bf2da
simvue/utilities.py
@@ -53,7 +53,10 @@ def find_first_instance_of_file(
53
_user_file = _current_path.joinpath(file_name)
54
if _user_file.exists():
55
return _user_file
56
- _current_path = _current_path.parent
+ _parent_path = _current_path.parent
57
+ if _parent_path == _current_path: # parent of root dir is root dir
58
+ break
59
+ _current_path = _parent_path
60
61
# If the user is running on different mounted volume or outside
62
# of their user space then the above will not return the file
0 commit comments