From 6fa9e4f10366026a437315414fbdeaa5d360b032 Mon Sep 17 00:00:00 2001 From: Ali Hatami Tajik Date: Fri, 7 Apr 2023 17:28:17 +0330 Subject: [PATCH] Change relative config file to absolute --- src/scripts/python/setupmonitor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/python/setupmonitor.py b/src/scripts/python/setupmonitor.py index 501bb5a..7f71d69 100644 --- a/src/scripts/python/setupmonitor.py +++ b/src/scripts/python/setupmonitor.py @@ -34,8 +34,10 @@ import configparser from util import edit_distance from util.egalax import get_egalax_drm_pure_name import subprocess +from pathlib import Path +import os -CONFIG_NAME = "conf/desktop.conf" +CONFIG_NAME = Path(os.path.dirname(os.path.realpath(__file__))) / "conf/desktop.conf" XRANDR = "/usr/bin/xrandr" def read_config():