Skip to content

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon committed Sep 2, 2024
1 parent 5441868 commit 0c74ab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sports2D/Sports2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions Sports2D/Utilities/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0c74ab4

Please sign in to comment.