From 381f89d8eabc0a45a7234d024ae02f6b54ce49a8 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 9 Feb 2010 19:09:05 +0000 Subject: [PATCH] Uh, oh, let's keep backward compatibility for base.mainDir --- direct/src/showbase/ShowBase.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 4ce09fa552..6a37276112 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -59,6 +59,9 @@ class ShowBase(DirectObject.DirectObject): if config.GetBool('want-variable-dump', 0): ExceptionVarDump.install() + # Locate the directory containing the main program + self.mainDir = ExecutionEnvironment.getEnvironmentVariable("MAIN_DIR") + # The appRunner should have been created by the time ShowBase # has been. self.appRunner = AppRunnerGlobal.appRunner