Debug files files on macos are actually folders.
This commit is contained in:
parent
291ac98c64
commit
b7e2366cd1
|
@ -5,6 +5,7 @@ import sys
|
|||
import glob
|
||||
import zipfile
|
||||
import requests
|
||||
import shutil
|
||||
|
||||
database = "valentina"
|
||||
|
||||
|
@ -135,6 +136,9 @@ def upload_symbols(install_root, val_version, commit_hash, qt_version, clean=Fal
|
|||
print(f"PermissionError removing '{sym_file}': {e}")
|
||||
|
||||
try:
|
||||
if sys.platform == "darwin":
|
||||
shutil.rmtree(debug_file)
|
||||
else:
|
||||
os.remove(debug_file)
|
||||
print(f"Debug file '{debug_file}' removed.")
|
||||
except PermissionError as e:
|
||||
|
|
Loading…
Reference in New Issue
Block a user