From 6b3efe939891708c996c2d7bbbd98240e0474b05 Mon Sep 17 00:00:00 2001 From: ShyPike Date: Sat, 9 Jul 2011 09:55:39 +0200 Subject: [PATCH] OSX binary: remove odd -psn_0_12345 parameter that would be mistaken for "-p -s -n". --- SABnzbd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SABnzbd.py b/SABnzbd.py index 0059e33..7c8557a 100755 --- a/SABnzbd.py +++ b/SABnzbd.py @@ -744,6 +744,12 @@ def commandline_handler(frozen=True): serv_opts = [os.path.normpath(os.path.abspath(sys.argv[0]))] upload_nzbs = [] + # OSX binary: get rid of the weird -psn_0_123456 parameter + for arg in sys.argv: + if arg.startswith('-psn_'): + sys.argv.remove(arg) + break + # Ugly hack to remove the extra "SABnzbd*" parameter the Windows binary # gets when it's restarted if len(sys.argv) > 1 and \