From 2cb377920404e6c9e1e63c0f5be3d04ee0f232ab Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sun, 16 Aug 2020 14:43:43 -0700 Subject: [PATCH] build_apps: Use FreezeTool.__replacePaths() to cleanup tracebacks This alters paths in tracebacks to contain just module names instead of full, absolute paths. This makes tracebacks easier to read and leaks less information about the build machine. Closes #991 --- direct/src/dist/FreezeTool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/direct/src/dist/FreezeTool.py b/direct/src/dist/FreezeTool.py index 237deb9cf3..f2c39e88b4 100644 --- a/direct/src/dist/FreezeTool.py +++ b/direct/src/dist/FreezeTool.py @@ -1695,6 +1695,8 @@ class Freezer: def generateRuntimeFromStub(self, target, stub_file, use_console, fields={}, log_append=False): + self.__replacePaths() + # We must have a __main__ module to make an exe file. if not self.__writingModule('__main__'): message = "Can't generate an executable without a __main__ module."