replace self made function to create a path with os.path.join

This commit is contained in:
Andreas Zweili 2016-12-15 15:17:49 +01:00
parent b6d00e79b8
commit 03f48a6f01
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ def configuration():
# the binary
home = os.getenv('HOME')
config_file = "borg_interface.cfg"
config_long_path = home + "/.config/borg_interface/" + config_file
config_long_path = os.path.join(home, ".config/borg_interface/",
config_file)
if os.path.isfile(config_long_path):
config.read(config_long_path)
elif os.path.isfile(config_file):