mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
protect against repeated libraries on command line
This commit is contained in:
parent
5761ae9d2c
commit
11e1ff3b81
@ -124,6 +124,14 @@ def doGetopts():
|
|||||||
# Store the program arguments into the codeLibs
|
# Store the program arguments into the codeLibs
|
||||||
codeLibs += pargs
|
codeLibs += pargs
|
||||||
|
|
||||||
|
# Make sure each name appears on codeLibs exactly once.
|
||||||
|
newLibs = []
|
||||||
|
for codeLib in codeLibs:
|
||||||
|
if codeLib not in newLibs:
|
||||||
|
newLibs.append(codeLib)
|
||||||
|
codeLibs = newLibs
|
||||||
|
|
||||||
|
|
||||||
def doErrorCheck():
|
def doErrorCheck():
|
||||||
global outputDir
|
global outputDir
|
||||||
global extensionsDir
|
global extensionsDir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user