From a2faefb7485e094f757e60c1a5cd7ca03d714f33 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 9 Feb 2010 19:07:08 +0000 Subject: [PATCH] ShowBase, stop butchering the perfectly fine MAIN_DIR that was already set by ExecutionEnvironment! --- direct/src/showbase/ShowBase.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index a156a1eaf2..4ce09fa552 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -59,11 +59,6 @@ class ShowBase(DirectObject.DirectObject): if config.GetBool('want-variable-dump', 0): ExceptionVarDump.install() - # Locate the directory containing the main program - maindir=os.path.abspath(sys.path[0]) - self.mainDir = Filename.fromOsSpecific(maindir).getFullpath() - ExecutionEnvironment.setEnvironmentVariable("MAIN_DIR", self.mainDir) - # The appRunner should have been created by the time ShowBase # has been. self.appRunner = AppRunnerGlobal.appRunner