topen payment request file passed as argument - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 41d498fda09685306a126eb4aa3dc26645305830 DIR parent 2868df74b677aa2524359799dd3b93c21bfb0bff HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 21 Apr 2015 18:08:35 +0200 open payment request file passed as argument Diffstat: M electrum | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -219,6 +219,10 @@ if __name__ == '__main__': elif len(args) == 1 and re.match('^bitcoin:', args[0]): url = args[0] cmd = 'gui' + elif len(args) == 1 and args[0] not in known_commands and os.path.exists(args[0]): + # fixme: assume this is a payment request + url = "bitcoin:?r=file://"+ os.path.join(os.getcwd(), args[0]) + cmd = 'gui' else: cmd = args[0]