better path handeling
This commit is contained in:
parent
f0f8fc324c
commit
eb3c510f82
2
V4.py
2
V4.py
@ -72,7 +72,7 @@ if IsLinux:
|
|||||||
else:
|
else:
|
||||||
system("") # enable colors in cmd
|
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 = configparser.ConfigParser()
|
||||||
config.read(config_path)
|
config.read(config_path)
|
||||||
#path comfigurations
|
#path comfigurations
|
||||||
|
2
main.py
2
main.py
@ -4,7 +4,7 @@ import enquiries
|
|||||||
import configparser
|
import configparser
|
||||||
import os
|
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 = configparser.ConfigParser()
|
||||||
config.read(config_path)
|
config.read(config_path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user