Skip to content

Commit df54614

Browse files
committed
Fix: local_store file
1 parent a18721f commit df54614

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/utils/gauth.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@
2323
from PySide6.QtWidgets import QVBoxLayout
2424
from PySide6.QtWidgets import QWidget
2525

26-
import src.flavour as bitcoin_network
2726
from accessible_constant import BACKUP_WINDOW
2827
from config import client_config
29-
from src.model.enums.enums_model import NetworkEnumModel
3028
from src.utils.constant import G_SCOPES as SCOPES
3129
from src.utils.local_store import app_paths
3230
from src.utils.logging import logger
3331

34-
current_network = NetworkEnumModel(bitcoin_network.__network__)
3532
CREDENTIALS_JSON_PATH = os.path.join(
3633
os.path.dirname(__file__), '../../credentials.json',
3734
)

src/utils/local_store.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def __init__(self, app_name, org_domain):
5050
).filePath(__network__)
5151

5252
# Initialize settings with a custom location
53-
self.settings_path = QDir(self.base_path).filePath(
53+
self.config_file_path = QDir(self.base_path).filePath(
5454
os.path.join(APP_DIR, f'{app_name}-{__network__}.ini'),
5555
)
56-
self.settings = QSettings(self.settings_path, QSettings.IniFormat)
56+
self.settings = QSettings(self.config_file_path, QSettings.IniFormat)
5757

5858
def set_value(self, key, value):
5959
"""
@@ -157,9 +157,7 @@ def build_app_paths(self) -> AppPathsModel:
157157
node_logs_path=os.path.join(node_path, LOG_FOLDER_NAME),
158158
ldk_logs_path=os.path.join(node_path, '.ldk', 'logs', 'logs.txt'),
159159
pickle_file_path=os.path.join(app_path, 'token.pickle'),
160-
config_file_path=os.path.join(
161-
app_path, f"{APP_NAME}-{__network__}.ini",
162-
),
160+
config_file_path=self.config_file_path,
163161
backup_folder_path=os.path.join(
164162
iriswallet_temp_folder_path, 'backup',
165163
),

0 commit comments

Comments
 (0)