mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Fix in case ExecutionEnvironment.getEnvironmentVariable() doesn't work
This commit is contained in:
parent
3b6dd07d5d
commit
2e2e0d7de4
@ -2284,6 +2284,8 @@ class Packager:
|
||||
path, and adds its contents to the indicated DSearchPath. """
|
||||
|
||||
path = ExecutionEnvironment.getEnvironmentVariable(varname)
|
||||
if len(path) == 0:
|
||||
path = os.environ[varname]
|
||||
for dirname in path.split(';'):
|
||||
dirname = Filename.fromOsSpecific(dirname)
|
||||
if dirname.makeTrueCase():
|
||||
@ -2294,6 +2296,8 @@ class Packager:
|
||||
path, and adds its contents to the indicated DSearchPath. """
|
||||
|
||||
path = ExecutionEnvironment.getEnvironmentVariable(varname)
|
||||
if len(path) == 0:
|
||||
path = os.environ[varname]
|
||||
for dirname in path.split(':'):
|
||||
dirname = Filename.fromOsSpecific(dirname)
|
||||
if dirname.makeTrueCase():
|
||||
|
Loading…
x
Reference in New Issue
Block a user