From 4ff47aeee34baa760bb909db1670185e26fe0301 Mon Sep 17 00:00:00 2001 From: style77 Date: Mon, 22 Jan 2024 00:12:23 +0100 Subject: [PATCH] chore: update paths --- app/app.py | 3 ++- app/ui/window.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index 81f8433..af0c9bb 100644 --- a/app/app.py +++ b/app/app.py @@ -1,4 +1,5 @@ import queue +import os from threading import Thread import tkinter as tk from deep_translator import GoogleTranslator @@ -12,7 +13,7 @@ class App: - config = Config("config.json") + config = Config(os.environ.get("CONFIG_PATH", "config.json")) recognizer = sr.Recognizer() provider = recognizer.recognize_google translation_provider = GoogleTranslator( diff --git a/app/ui/window.py b/app/ui/window.py index fbf0ca2..251552c 100644 --- a/app/ui/window.py +++ b/app/ui/window.py @@ -9,7 +9,7 @@ class TrayIcon: def __init__(self): menu_options = () - path_icon = r"app\assets\logo.ico" + path_icon = r"logo.ico" default_stop_callback = lambda _: os._exit(0) # noqa