tfix request_dir variable - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit b9e4825422b8b247b633c81b3b939051b81376b4 (DIR) parent 514ea6aa8c938bc2ccb15c85879a76ef9a8c5828 (HTM) Author: ThomasV <thomasv@gitorious> Date: Tue, 2 Jun 2015 09:37:54 +0200 fix request_dir variable Diffstat: M lib/wallet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- (DIR) diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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