protect against repeated libraries on command line

This commit is contained in:
David Rose 2004-12-03 00:58:52 +00:00
parent 5761ae9d2c
commit 11e1ff3b81

View File

@ -124,6 +124,14 @@ def doGetopts():
# Store the program arguments into the codeLibs
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():
global outputDir
global extensionsDir