diff --git a/V4.py b/V4.py index ff08997..03a0e8c 100755 --- a/V4.py +++ b/V4.py @@ -72,7 +72,7 @@ if IsLinux: else: system("") # enable colors in cmd -config_path = "/home/pi/MsReward/config" +config_path = f"{os.path.abspath( os.path.dirname( __file__ ) )}/config" config = configparser.ConfigParser() config.read(config_path) #path comfigurations diff --git a/main.py b/main.py index 26d55a1..532e243 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ import enquiries import configparser import os -config_path = "/home/pi/MsReward/Git/MsReward/config" +config_path = f"{os.path.abspath( os.path.dirname( __file__ ) )}/config" config = configparser.ConfigParser() config.read(config_path)