Jelajahi Sumber

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

rdb 16 tahun lalu
induk
melakukan
a2faefb748
1 mengubah file dengan 0 tambahan dan 5 penghapusan
  1. 0 5
      direct/src/showbase/ShowBase.py

+ 0 - 5
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