From 0c74ab446c15dd2f803518d8e86b0007d60890fd Mon Sep 17 00:00:00 2001 From: davidpagnon Date: Mon, 2 Sep 2024 16:01:19 +0200 Subject: [PATCH] e --- Sports2D/Sports2D.py | 2 +- Sports2D/Utilities/tests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sports2D/Sports2D.py b/Sports2D/Sports2D.py index c4c4acf..c1357e0 100644 --- a/Sports2D/Sports2D.py +++ b/Sports2D/Sports2D.py @@ -444,10 +444,10 @@ def main(): # Run process with the new configuration dictionary video_dir = Path(new_config.get('project').get('video_dir')).resolve() - print('1video_dir', video_dir) if video_dir == '': video_dir = Path.cwd() print('2video_dir', video_dir) video_input = new_config.get('project').get('video_input') + print('3video_input', video_input) video_files = [Path(video_input)] print('4video_files str', video_files) if video_dir: diff --git a/Sports2D/Utilities/tests.py b/Sports2D/Utilities/tests.py index bf76d73..01be164 100644 --- a/Sports2D/Utilities/tests.py +++ b/Sports2D/Utilities/tests.py @@ -54,9 +54,9 @@ def test_workflow(): # From command line (CLI) with config file cli_config_path = Path(__file__).resolve().parent.parent / 'Demo' / 'Config_demo.toml' config_dict = toml.load(cli_config_path) - cli_video_file = 'demo.mp4' + # cli_video_file = 'demo.mp4' cli_video_dir = Path(__file__).resolve().parent.parent / 'Demo' - config_dict.get("project").update({"video_input": cli_video_file}) + # config_dict.get("project").update({"video_input": cli_video_file}) config_dict.get("project").update({"video_dir": cli_video_dir}) with open(cli_config_path, 'w') as f: toml.dump(config_dict, f)