mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-11 01:28:17 +03:00
f67ca2c5a3
conflicting with DEFAULT_ROOT_PATH when CHIA_ROOT is set. When the GUI launches chia services, CHIA_ROOT is set, which was preventing the wallet backend from copying existing DBs from the standalone_wallet.
10 lines
375 B
Python
10 lines
375 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("CHIA_ROOT", "~/.chia/mainnet"))).resolve()
|
|
STANDALONE_ROOT_PATH = Path(
|
|
os.path.expanduser(os.getenv("CHIA_STANDALONE_WALLET_ROOT", "~/.chia/standalone_wallet"))
|
|
).resolve()
|
|
|
|
DEFAULT_KEYS_ROOT_PATH = Path(os.path.expanduser(os.getenv("CHIA_KEYS_ROOT", "~/.chia_keys"))).resolve()
|