From 285c7d882493b065b8a2b5695b52db6bf022118c Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Sun, 22 Mar 2009 14:53:10 +0000 Subject: [PATCH] have to supply argv to main() as a list, splitting on whitespace won't work if you supply an argument like a path with a space in it. --- pyfpdb/GuiBulkImport.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyfpdb/GuiBulkImport.py b/pyfpdb/GuiBulkImport.py index 2b1fe500..1a62a37d 100755 --- a/pyfpdb/GuiBulkImport.py +++ b/pyfpdb/GuiBulkImport.py @@ -210,11 +210,9 @@ class GuiBulkImport(): def main(argv=None): """main can also be called in the python interpreter, by supplying the command line as the argument. >>>import GuiBulkImport ->>>GuiBulkImport.main("-f ~/data/hands")""" +>>>GuiBulkImport.main(['-f'.'~/data/hands'])""" if argv is None: argv = sys.argv[1:] - else: - argv = argv.split(" ") def destroy(*args): # call back for terminating the main eventloop gtk.main_quit()