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
|
settings/settings.data
|
||||||
|
*.data
|
||||||
project_manager/projects_list.data
|
project_manager/projects_list.data
|
||||||
*~
|
*~
|
|
@ -1 +0,0 @@
|
||||||
Language = Unknown
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue