ShowBase, stop butchering the perfectly fine MAIN_DIR that was already set by ExecutionEnvironment!

This commit is contained in:
rdb 2010-02-09 19:07:08 +00:00
parent 6dbdcbf628
commit a2faefb748

View File

@ -59,11 +59,6 @@ class ShowBase(DirectObject.DirectObject):
if config.GetBool('want-variable-dump', 0): if config.GetBool('want-variable-dump', 0):
ExceptionVarDump.install() 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 # The appRunner should have been created by the time ShowBase
# has been. # has been.
self.appRunner = AppRunnerGlobal.appRunner self.appRunner = AppRunnerGlobal.appRunner