commit b9e4825422b8b247b633c81b3b939051b81376b4
parent 514ea6aa8c938bc2ccb15c85879a76ef9a8c5828
Author: ThomasV <thomasv@gitorious>
Date: Tue, 2 Jun 2015 09:37:54 +0200
fix request_dir variable
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -1254,9 +1254,10 @@ class Abstract_Wallet(object):
self.set_label(addr, message)
now = int(time.time())
r = {'time':now, 'amount':amount, 'expiration':expiration, 'address':addr}
- if config.get('requests_dir'):
+ rdir = config.get('requests_dir')
+ if rdir:
pr = self.make_bip70_request(config, r)
- path = os.path.join(config.get('www_dir'), addr + '.bip70')
+ path = os.path.join(rdir, addr + '.bip70')
with open(path, 'w') as f:
f.write(pr)
r['url'] = 'bitcoin:?r=file://' + path