Sanity-check for folder-removal
This commit is contained in:
parent
24df9bc2fc
commit
779e03291c
@ -182,7 +182,12 @@ def unloadMods(output = False):
|
|||||||
return
|
return
|
||||||
|
|
||||||
print("Removing cloned app folder...")
|
print("Removing cloned app folder...")
|
||||||
shutil.rmtree(appPath)
|
try:
|
||||||
|
shutil.rmtree(appPath)
|
||||||
|
except:
|
||||||
|
if output: print("Can't delete folder! Is it in use?")
|
||||||
|
return
|
||||||
|
|
||||||
os.rename(originalAppPath,appPath)
|
os.rename(originalAppPath,appPath)
|
||||||
#ctypes.windll.kernel32.SetFileAttributesW(appPath,128)
|
#ctypes.windll.kernel32.SetFileAttributesW(appPath,128)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user