We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba97120 commit 88aea22Copy full SHA for 88aea22
utils/general.py
@@ -455,6 +455,9 @@ def check_file(file, suffix=''):
455
yaml_name = os.path.join(*file.split(os.sep)[1:])
456
files.extend(glob.glob(str(ROOT / "models_v5.0" / '**' / yaml_name), recursive=True))
457
458
+ if file.startswith("data"):
459
+ file = os.path.join(*file.split(os.sep)[1:])
460
+
461
for d in 'data', 'models', 'utils': # search directories
462
files.extend(glob.glob(str(ROOT / d / '**' / file), recursive=True)) # find file
463
assert len(files), f'File not found: {file}' # assert file was found
0 commit comments