From a4cdf4368694c249ae8624b91240b7102e1d6ec9 Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Mon, 30 Aug 2021 00:43:45 +0200 Subject: [PATCH] Fixed relative path problem --- hotcutdaemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotcutdaemon.py b/hotcutdaemon.py index ff79e00..fee0d0d 100644 --- a/hotcutdaemon.py +++ b/hotcutdaemon.py @@ -2,7 +2,7 @@ from evdev import InputDevice, categorize, ecodes import configparser, os config = configparser.ConfigParser() -config.read('config.ini') +config.read(os.path.dirname(os.path.realpath(__file__))+'/config.ini') def sysrun(command): os.system(command+ " &") dev = InputDevice(config["DEVICE"]["path"])