Add line seperation to config
This commit is contained in:
parent
3072753159
commit
bc756ec244
8
main.py
8
main.py
|
@ -35,12 +35,20 @@ for line in configFile:
|
||||||
for letter in line:
|
for letter in line:
|
||||||
if letter == ' ':
|
if letter == ' ':
|
||||||
confArgNumber = confArgNumber + 1
|
confArgNumber = confArgNumber + 1
|
||||||
|
elif letter == ',':
|
||||||
|
confArgList.append(",")
|
||||||
|
confArgNumber = confArgNumber + 1
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
confArgList[confArgNumber] = confArgList[confArgNumber] + letter
|
confArgList[confArgNumber] = confArgList[confArgNumber] + letter
|
||||||
except Exception:
|
except Exception:
|
||||||
confArgList.append(letter)
|
confArgList.append(letter)
|
||||||
print(confArgList)
|
print(confArgList)
|
||||||
|
for word in confArgList:
|
||||||
|
if "\n" in word:
|
||||||
|
confArgList[confArgList.index(word)] = word.replace("\n", "")
|
||||||
|
|
||||||
|
print(confArgList)
|
||||||
|
|
||||||
# Write the time to the history file
|
# Write the time to the history file
|
||||||
historyFile = open((expanduser("~") + "/.history.mash"), "a")
|
historyFile = open((expanduser("~") + "/.history.mash"), "a")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user