From ea832efb812d4504c4312531eb77950756b1a043 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 12 Nov 2018 18:32:48 +0100 Subject: [PATCH] deploy-ng: fix run error with frozen attr module --- direct/src/showutil/FreezeTool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/showutil/FreezeTool.py b/direct/src/showutil/FreezeTool.py index cf8c6c4bff..45ae698413 100644 --- a/direct/src/showutil/FreezeTool.py +++ b/direct/src/showutil/FreezeTool.py @@ -89,11 +89,14 @@ overrideModules = { # lines from the main executable, which we don't want. 'linecache': """__all__ = ["getline", "clearcache", "checkcache"] +cache = {} + def getline(filename, lineno, module_globals=None): return '' def clearcache(): - pass + global cache + cache = {} def getlines(filename, module_globals=None): return []