[wiican] Bugfix parsing input arguments



commit b5f09f2f7a110a06c2548ccf95ac17041608ca8d
Author: J. Félix Ontañón <fontanon emergya es>
Date:   Fri Nov 5 19:14:12 2010 +0100

    Bugfix parsing input arguments

 bin/wiican |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bin/wiican b/bin/wiican
index e6a3613..1c1debf 100755
--- a/bin/wiican
+++ b/bin/wiican
@@ -291,7 +291,7 @@ if __name__ == '__main__':
                       help=_('loads mapping package from FILENAME'))
     (options, args) = parser.parse_args()
 
-    if options.filename != None:
+    if options.filename not in (None, ''):
         filename = options.filename
         if filename.startswith("'") or filename.startswith('"') :
             filename = filename[1:-1]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]