mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Backup dependency cache to save frustration when you accidentally hit a wrong option
This commit is contained in:
parent
0936def12b
commit
5343fa0969
@ -319,6 +319,11 @@ def CxxGetIncludes(path):
|
||||
########################################################################
|
||||
|
||||
def SaveDependencyCache():
|
||||
try:
|
||||
if (os.path.exists(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"))):
|
||||
os.rename(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache-backup"),
|
||||
os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"))
|
||||
except: pass
|
||||
try: icache = open(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"),'wb')
|
||||
except: icache = 0
|
||||
if (icache!=0):
|
||||
|
Loading…
x
Reference in New Issue
Block a user