Просмотр исходного кода

Prevent from adding \\r to the end of codeLibs

Yonghwan Lee 18 лет назад
Родитель
Сommit
f19767bc37
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      direct/src/ffi/DoGenPyCode.py

+ 4 - 1
direct/src/ffi/DoGenPyCode.py

@@ -157,7 +157,10 @@ def doGetopts():
         del pargs[0]
 
     # Store the program arguments into the codeLibs
-    codeLibs += pargs
+    for arg in pargs:
+        arg = arg.strip()
+        if arg:
+            codeLibs.append(arg)
 
     # Make sure each name appears on codeLibs exactly once.
     newLibs = []