From 4e450f86ae0e2b915ab7e5c5c6af3b1a203e95b1 Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Wed, 4 Nov 2015 22:42:53 -0800 Subject: [PATCH] fix issue with config parser and %s --- pirate/pirate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pirate/pirate.py b/pirate/pirate.py index aecdc25..32400a1 100755 --- a/pirate/pirate.py +++ b/pirate/pirate.py @@ -21,7 +21,7 @@ from pirate.print import Printer def parse_config_file(text): - config = configparser.ConfigParser() + config = configparser.RawConfigParser() # default options config.add_section('Save') @@ -383,7 +383,9 @@ def pirate_main(args): if args.output == 'transmission': subprocess.call(args.transmission_command + ['--add', url]) elif args.output == 'open_command': - subprocess.call(parse_cmd(args.open_command, url)) + cmd = parse_cmd(args.open_command, url) + printer.print(" ".join(cmd)) + subprocess.call(cmd) elif args.output == 'browser_open': webbrowser.open(url)