Skip to content

Commit

Permalink
fix module auto download script
Browse files Browse the repository at this point in the history
- fix module auto download script to prevent incomplete modules loading
  • Loading branch information
Paciente8159 committed Sep 17, 2024
1 parent 874c313 commit 8dcc841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ucnc_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def extract_folders_from_zip(zip_path, extract_path, folders):
file_info.filename = os.path.relpath(
file_info.filename, os.path.join(rootdir.filename, folder)
)
if Path(dest_path).exists():
if os.path.exists(os.path.join(dest_path, file_info.filename)):
continue
print(f"Extracting {file_info.filename} to {dest_path}")
zip_ref.extract(file_info, dest_path)
Expand Down

0 comments on commit 8dcc841

Please sign in to comment.