enable import of multiple toml files at once via cli

This commit is contained in:
Justus Kuhlmann 2025-04-08 14:47:55 +00:00
commit 5fa80077aa
2 changed files with 9 additions and 3 deletions

View file

@ -45,6 +45,11 @@ def check_measurement_data(measurements: dict, code: str) -> None:
return
def import_tomls(path: str, files: str, copy_files: bool=True) -> None:
for file in files:
import_toml(path, file, copy_files)
def import_toml(path: str, file: str, copy_file: bool=True) -> None:
"""
Import a project decribed by a .toml file.