Uh, oh, let's keep backward compatibility for base.mainDir

This commit is contained in:
rdb 2010-02-09 19:09:05 +00:00
parent a2faefb748
commit 381f89d8ea

View File

@ -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