mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
don't use user_dir in storage
This commit is contained in:
parent
2a6e8927dd
commit
a16b0f4630
1 changed files with 2 additions and 7 deletions
|
@ -30,7 +30,7 @@ import aes
|
||||||
import Queue
|
import Queue
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from util import print_msg, print_error, user_dir, format_satoshis
|
from util import print_msg, print_error, format_satoshis
|
||||||
from bitcoin import *
|
from bitcoin import *
|
||||||
from account import *
|
from account import *
|
||||||
|
|
||||||
|
@ -84,12 +84,7 @@ class WalletStorage:
|
||||||
self.path = path
|
self.path = path
|
||||||
return
|
return
|
||||||
|
|
||||||
# Look for wallet file in the default data directory.
|
self.path = os.path.join(config.path, "electrum.dat")
|
||||||
# Make wallet directory if it does not yet exist.
|
|
||||||
if not os.path.exists(self.user_dir):
|
|
||||||
os.mkdir(self.user_dir)
|
|
||||||
|
|
||||||
self.path = os.path.join(self.user_dir, "electrum.dat")
|
|
||||||
|
|
||||||
|
|
||||||
def read(self, path):
|
def read(self, path):
|
||||||
|
|
Loading…
Add table
Reference in a new issue