create dir if it does not exist
This commit is contained in:
parent
f0d0dc8acd
commit
99a269fcf5
@ -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…
Reference in New Issue
Block a user