Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions utility/fileUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from os.path import expanduser

# Global Section Variables
PATH = expanduser("~") + "/.config/tvdoon/"
try:
PATH = os.environ["XDG_CONFIG_HOME"] + "/tvdoon/"
except KeyError:
PATH = expanduser("~") + "/.config/tvdoon/"

def checkConfExist():
# create conf directory
Expand All @@ -15,4 +18,4 @@ def checkConfExist():
except (OSError, IOError) as e:
open(PATH + "favourites.conf", "a").close()

return
return