From f19767bc370d252c482dfaccde3709b01069dc20 Mon Sep 17 00:00:00 2001 From: Yonghwan Lee Date: Wed, 15 Aug 2007 19:05:53 +0000 Subject: [PATCH] Prevent from adding \\r to the end of codeLibs --- direct/src/ffi/DoGenPyCode.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/ffi/DoGenPyCode.py b/direct/src/ffi/DoGenPyCode.py index 8bbd5a75b4..378c7d33bf 100644 --- a/direct/src/ffi/DoGenPyCode.py +++ b/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 = []