diff --git a/main.py b/main.py index d8d8fa3..e7dcc3f 100755 --- a/main.py +++ b/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")