better path handeling

This commit is contained in:
piair 2022-06-22 18:58:28 +02:00
parent f0f8fc324c
commit eb3c510f82
2 changed files with 2 additions and 2 deletions

2
V4.py
View File

@ -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

View File

@ -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)