From cf6cb46fa2aac1c93719e076f543008eb274e5d5 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Mon, 19 Nov 2012 23:48:18 +0100 Subject: [PATCH] simplified -d opt a bit --- Qwad.pyw | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Qwad.pyw b/Qwad.pyw index a807f67..0e5323d 100644 --- a/Qwad.pyw +++ b/Qwad.pyw @@ -46,12 +46,12 @@ def main(): sys.exit(0) if options.download: - if "IOS" in str(args[0]): - xarg = TitleDict[str(args[0])] - nusdow = nusDownloadingCLI(int(str(xarg).lower(),16), args[1], args[2], args[3], args[4]) + if "IOS" in str(options.download[0]): + xarg = TitleDict[str(options.download[0])] + nusdow = nusDownloadingCLI(int(str(xarg).lower(),16), args[0], args[1], args[2], args[3]) else: - nusdow = nusDownloadingCLI(int(str(args[0]).lower(),16), args[1], args[2], args[3], args[4]) + nusdow = nusDownloadingCLI(int(str(options.download[0]).lower(),16), args[0], args[1], args[2], args[3]) nusdow.start() sys.exit(0) @@ -73,7 +73,6 @@ def main(): print "%s == %s" % (str(args[0]), xarg) sys.exit(0) - os.chdir(os.getenv("HOME")) translator = QTranslator() translator.load(QString("i18n/Qwad_%1").arg(QLocale.system().name()))