mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-07 14:00:57 +00:00
temporary disabling of appdirs variables
This commit is contained in:
parent
b58c37cf95
commit
8699f1fb81
@ -3,17 +3,21 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|
||||||
from appdirs import user_cache_dir, user_config_dir
|
|
||||||
|
|
||||||
from ..thp.channel_data import ChannelData
|
from ..thp.channel_data import ChannelData
|
||||||
from .protocol_and_channel import ProtocolAndChannel
|
from .protocol_and_channel import ProtocolAndChannel
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
APP_NAME = "@trezor" # TODO
|
if False:
|
||||||
DATA_PATH = os.path.join(user_cache_dir(appname=APP_NAME), "channel_data.json")
|
from appdirs import user_cache_dir, user_config_dir
|
||||||
CONFIG_PATH = os.path.join(user_config_dir(appname=APP_NAME), "config.json")
|
|
||||||
|
|
||||||
|
APP_NAME = "@trezor" # TODO
|
||||||
|
DATA_PATH = os.path.join(user_cache_dir(appname=APP_NAME), "channel_data.json")
|
||||||
|
CONFIG_PATH = os.path.join(user_config_dir(appname=APP_NAME), "config.json")
|
||||||
|
else:
|
||||||
|
DATA_PATH = os.path.join("./channel_data.json")
|
||||||
|
CONFIG_PATH = os.path.join("./config.json")
|
||||||
|
|
||||||
class ChannelDatabase: # TODO not finished
|
class ChannelDatabase: # TODO not finished
|
||||||
should_store: bool = False
|
should_store: bool = False
|
||||||
|
Loading…
Reference in New Issue
Block a user