diff options
Diffstat (limited to 'codegen/lib/download.py')
| -rwxr-xr-x | codegen/lib/download.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/codegen/lib/download.py b/codegen/lib/download.py index aec3a648..1b22fbcc 100755 --- a/codegen/lib/download.py +++ b/codegen/lib/download.py @@ -177,7 +177,11 @@ def clear_version_cache(): if os.path.exists(get_dir_location(f'downloads/{file}')): os.remove(get_dir_location(f'downloads/{file}')) - os.system( - f'cd {get_dir_location("downloads/Burger")} && git pull') - os.system( - f'cd {get_dir_location("downloads/pixlyzer")} && git pull') + burger_path = get_dir_location("downloads/Burger") + if os.path.exists(burger_path): + os.system( + f'cd {burger_path} && git pull') + pixlyzer_path = get_dir_location('downloads/pixlyzer') + if os.path.exists(pixlyzer_path): + os.system( + f'cd {pixlyzer_path} && git pull')
\ No newline at end of file |
