mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
hardcoded defaults for VR Studio-specific paths really don't belong here
This commit is contained in:
parent
084c5b5e5e
commit
891153853f
@ -99,23 +99,6 @@ else:
|
||||
# The source directory exists; therefore, we are in case (1b).
|
||||
__path__[0] = srcDir
|
||||
|
||||
def checkDirEnv(name, defaultPath):
|
||||
"""
|
||||
If the environment variable already exists, do nothing.
|
||||
If it is not set and defaultPath is a dir, set name to defaultPath.
|
||||
"""
|
||||
if os.getenv(name) is None:
|
||||
if os.path.isdir(defaultPath):
|
||||
os.environ[name]=defaultPath
|
||||
print "%s was not set, setting it to %s"%(name, os.getenv(name))
|
||||
|
||||
checkDirEnv("PANDA_ROOT", "c:/cygwin")
|
||||
# checkDirEnv("PANDA_ROOT", "/usr/local/panda")
|
||||
checkDirEnv("DMODELS", "c:/dmodels")
|
||||
checkDirEnv("TTMODELS", "c:/ttmodels")
|
||||
checkDirEnv("PMOCKUP", "c:/pmockup")
|
||||
checkDirEnv("GWMODELS", "c:/gwmodels")
|
||||
# checkDirEnv("TTMODELS", "~/ttmodels")
|
||||
else:
|
||||
# The source directory does not exist, so we must be in case
|
||||
# (2). Leave well enough alone.
|
||||
|
Loading…
x
Reference in New Issue
Block a user