浏览代码

Prevent from adding \\r to the end of codeLibs

Yonghwan Lee 18 年之前
父节点
当前提交
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]
         del pargs[0]
 
 
     # Store the program arguments into the codeLibs
     # 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.
     # Make sure each name appears on codeLibs exactly once.
     newLibs = []
     newLibs = []