From 7e748a1306f3742c7e5a77ac8d5222caba5d11c2 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 26 Dec 2007 20:10:15 +0000 Subject: [PATCH] fix config error --- scripts/deluge | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deluge b/scripts/deluge index b9c84e5d8..a58a2e946 100755 --- a/scripts/deluge +++ b/scripts/deluge @@ -60,8 +60,8 @@ if not deluge.common.windows_check(): if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/lib/firefox": os.environ["MOZILLA_FIVE_HOME"] = "/usr/lib/firefox" os.environ["LD_LIBRARY_PATH"] = "/usr/lib/firefox" - if config in options: - os.system("/usr/bin/deluge %s %s" %(options, args)) + if (options.config != None): + os.system("/usr/bin/deluge --config %s %s" %(options.config, args)) elif args: os.system("/usr/bin/deluge %s" %(args)) else: @@ -71,8 +71,8 @@ if not deluge.common.windows_check(): if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/local/lib/firefox": os.environ["MOZILLA_FIVE_HOME"] = "/usr/local/lib/firefox" os.environ["LD_LIBRARY_PATH"] = "/usr/local/lib/firefox" - if config in options: - os.system("/usr/local/bin/deluge %s %s" %(options, args)) + if (options.config != None): + os.system("/usr/local/bin/deluge --config %s %s" %(options.config, args)) elif args: os.system("/usr/local/bin/deluge %s" %(args)) else: