Browse Source

create dir if it does not exist

283
ThomasV 13 years ago
parent
commit
99a269fcf5
  1. 5
      client/electrum.py

5
client/electrum.py

@ -217,7 +217,10 @@ def raw_tx( inputs, outputs, for_sig = None ):
class InvalidPassword(Exception):
pass
wallet_path = os.environ["HOME"] + '/.bitcoin/electrum.dat'
wallet_dir = os.environ["HOME"] + '/.bitcoin/'
if not os.path.exists( wallet_dir ):
os.mkdir( wallet_dir )
wallet_path = wallet_dir + '/electrum.dat'
class Wallet:
def __init__(self):

Loading…
Cancel
Save