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
*.data
project_manager/projects_list.data
*~

View file

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

View file

@ -3,11 +3,16 @@
import os
def read(setting):
#opening the file
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):