Browse Source

OSX binary: remove odd -psn_0_12345 parameter that would be mistaken for "-p -s -n".

tags/0.6.6
ShyPike 14 years ago
parent
commit
6b3efe9398
  1. 6
      SABnzbd.py

6
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 \

Loading…
Cancel
Save