Making sure that settings/settings.data is not in the git.
This commit is contained in:
parent
473225aac4
commit
40d4a019bb
3 changed files with 9 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
settings/settings.data
|
||||
*.data
|
||||
project_manager/projects_list.data
|
||||
*~
|
|
@ -1 +0,0 @@
|
|||
Language = Unknown
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue