Skip to content
Snippets Groups Projects
Commit dbbb6f77 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix imports for service

parent a03cd213
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ import fcntl
import ctypes
import struct
from .config import initialize_config
from .keycode import KEYCODE
from config import initialize_config
from keycode import KEYCODE
APPLICATION_NAME = "stechuhr-client"
......
......@@ -42,12 +42,12 @@ def get_dirs(application_name):
dirs["config"] = this_or_else(os.environ.get("XDG_CONFIG_HOME"), default_config_home)
# Override this directory from Environment variable
key = "{}_DATA_DIR".format(application_name.upper())
key = "{}_DATA_DIR".format(application_name.upper().replace(" ", "_").replace("-", "_"))
if os.getenv(key) is not None:
dirs["data"] = os.getenv(key)
# Override this directory from Environment variable
key = "{}_CONFIG_DIR".format(application_name.upper())
key = "{}_CONFIG_DIR".format(application_name.upper().replace(" ", "_").replace("-", "_"))
if os.getenv(key) is not None:
dirs["config"] = os.getenv(key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment