We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33ea2a8 + e1af0a2 commit 38c2a47Copy full SHA for 38c2a47
1 file changed
Mergin/utils.py
@@ -1061,11 +1061,8 @@ def mm_symbol_path():
1061
1062
def check_mergin_subdirs(directory):
1063
"""Check if the directory has a Mergin Maps project subdir (.mergin)."""
1064
- for root, dirs, files in os.walk(directory):
1065
- for name in dirs:
1066
- if name == ".mergin":
1067
- return os.path.join(root, name)
1068
- return False
+ mergin_dir = os.path.join(directory, ".mergin")
+ return mergin_dir if os.path.isdir(mergin_dir) else False
1069
1070
1071
def is_number(s):
0 commit comments