diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 1ecf349fb1..e650ef019f 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -714,8 +714,10 @@ TIMESTAMPCACHE = {} def GetTimestamp(path): if path in TIMESTAMPCACHE: return TIMESTAMPCACHE[path] - try: date = os.path.getmtime(path) - except: date = 0 + try: + date = int(os.path.getmtime(path)) + except: + date = 0 TIMESTAMPCACHE[path] = date return date @@ -866,7 +868,7 @@ def JavaGetImports(path): ## ######################################################################## -DCACHE_VERSION = 2 +DCACHE_VERSION = 3 DCACHE_BACKED_UP = False def SaveDependencyCache():