فهرست منبع

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]
 
     # 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 = []