mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Reliable rmtree on Windows
This commit is contained in:
parent
b615117dff
commit
813000b2cc
@ -348,7 +348,11 @@ class Installer:
|
||||
debfile.write(datatargz.str)
|
||||
if (len(datatargz.str) & 1): debfile.write("\x0A")
|
||||
debfile.close()
|
||||
shutil.rmtree(tempdir.toOsSpecific())
|
||||
try:
|
||||
base.appRunner.rmtree(tempdir)
|
||||
except:
|
||||
try: shutil.rmtree(tempdir.toOsSpecific())
|
||||
except: pass
|
||||
|
||||
def buildAPP(self, output, platform):
|
||||
|
||||
@ -659,5 +663,9 @@ class Installer:
|
||||
os.system(cmd)
|
||||
|
||||
nsifile.unlink()
|
||||
shutil.rmtree(rootDir.toOsSpecific())
|
||||
try:
|
||||
base.appRunner.rmtree(rootDir)
|
||||
except:
|
||||
try: shutil.rmtree(rootDir.toOsSpecific())
|
||||
except: pass
|
||||
return output
|
||||
|
Loading…
x
Reference in New Issue
Block a user