@@ -60,7 +60,7 @@ def generate_assets(args: argparse.Namespace) -> None:
|
||||
|
||||
report('checking source paths')
|
||||
for source in sorted(data_dir.rglob('*.xml')):
|
||||
if source.is_relative_to(data_dir / 'rhythms'):
|
||||
if source.is_relative_to(data_dir / 'rhythms') or source.is_relative_to(data_dir / 'scales'):
|
||||
continue
|
||||
if source.parent != data_dir / 'songs':
|
||||
raise ValueError(f'{source}: MusicXML sources belong directly under data/songs')
|
||||
|
||||
Reference in New Issue
Block a user