Making sure that settings/settings.data is not in the git.

This commit is contained in:
Victorious Children Studios 2023-12-14 13:41:06 +02:00
parent 473225aac4
commit 40d4a019bb
3 changed files with 9 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
settings/settings.data settings/settings.data
*.data
project_manager/projects_list.data project_manager/projects_list.data
*~ *~

View file

@ -1 +0,0 @@
Language = Unknown

View file

@ -3,11 +3,16 @@
import os import os
def read(setting): def read(setting):
#opening the file #opening the file
data = open("settings/settings.data") try:
data = data.read() data = open("settings/settings.data")
data = data.split("\n") data = data.read()
data = data.split("\n")
except:
data = ["Language = Unknown"]
#finding the keyword #finding the keyword
for line in data: for line in data:
if line.startswith(setting): if line.startswith(setting):