Add line seperation to config

This commit is contained in:
Maxwell Jeffress 2024-07-11 09:05:38 +10:00
parent 3072753159
commit bc756ec244

View File

@ -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")