Sanitize game path

This commit is contained in:
Fierelier 2023-10-07 09:00:04 +02:00
parent e13548fbdc
commit 1139a3983c
1 changed files with 2 additions and 1 deletions

View File

@ -191,6 +191,7 @@ def main():
while pathGame == "" or os.path.isdir(pathGame) == False:
pathGame = filterDd(input("Path to game - you may drag & drop:\n"))
pathGame = pathGame.rstrip("/\\")
pathMods = pathGame + " - umlMods"
pathTemp = pathGame + " - umlTemp"
pathOrig = pathGame + " - umlOriginal"
@ -236,4 +237,4 @@ def main():
if choice == "Open mod-folder": webbrowser.open("file://" +pathMods)
if __name__ == "__main__":
main()
main()