mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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)
|
debfile.write(datatargz.str)
|
||||||
if (len(datatargz.str) & 1): debfile.write("\x0A")
|
if (len(datatargz.str) & 1): debfile.write("\x0A")
|
||||||
debfile.close()
|
debfile.close()
|
||||||
shutil.rmtree(tempdir.toOsSpecific())
|
try:
|
||||||
|
base.appRunner.rmtree(tempdir)
|
||||||
|
except:
|
||||||
|
try: shutil.rmtree(tempdir.toOsSpecific())
|
||||||
|
except: pass
|
||||||
|
|
||||||
def buildAPP(self, output, platform):
|
def buildAPP(self, output, platform):
|
||||||
|
|
||||||
@ -659,5 +663,9 @@ class Installer:
|
|||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
nsifile.unlink()
|
nsifile.unlink()
|
||||||
shutil.rmtree(rootDir.toOsSpecific())
|
try:
|
||||||
|
base.appRunner.rmtree(rootDir)
|
||||||
|
except:
|
||||||
|
try: shutil.rmtree(rootDir.toOsSpecific())
|
||||||
|
except: pass
|
||||||
return output
|
return output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user