Skip to content

Commit

Permalink
temporary disabling of appdirs variables
Browse files Browse the repository at this point in the history
  • Loading branch information
M1nd3r committed Nov 19, 2024
1 parent 5bef5fb commit d437330
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions python/src/trezorlib/transport/thp/channel_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@
import os
import typing as t

from appdirs import user_cache_dir, user_config_dir

from ..thp.channel_data import ChannelData
from .protocol_and_channel import ProtocolAndChannel

LOG = logging.getLogger(__name__)

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")
if False:
from appdirs import user_cache_dir, user_config_dir

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
should_store: bool = False
Expand Down

0 comments on commit d437330

Please sign in to comment.