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:
|
||||
if letter == ' ':
|
||||
confArgNumber = confArgNumber + 1
|
||||
elif letter == ',':
|
||||
confArgList.append(",")
|
||||
confArgNumber = confArgNumber + 1
|
||||
else:
|
||||
try:
|
||||
confArgList[confArgNumber] = confArgList[confArgNumber] + letter
|
||||
except Exception:
|
||||
confArgList.append(letter)
|
||||
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
|
||||
historyFile = open((expanduser("~") + "/.history.mash"), "a")
|
||||
|
|
Loading…
Reference in New Issue
Block a user