diff --git a/.gitignore b/.gitignore index 163f194..ec5a428 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ settings/settings.data +*.data project_manager/projects_list.data *~ \ No newline at end of file diff --git a/settings/settings.data b/settings/settings.data deleted file mode 100644 index 1636688..0000000 --- a/settings/settings.data +++ /dev/null @@ -1 +0,0 @@ -Language = Unknown \ No newline at end of file diff --git a/settings/settings.py b/settings/settings.py index 869434d..8c1d0bd 100644 --- a/settings/settings.py +++ b/settings/settings.py @@ -3,11 +3,16 @@ import os + def read(setting): #opening the file - data = open("settings/settings.data") - data = data.read() - data = data.split("\n") + try: + data = open("settings/settings.data") + data = data.read() + data = data.split("\n") + except: + data = ["Language = Unknown"] + #finding the keyword for line in data: if line.startswith(setting):