Quote mystery files to prevent cmd arg mashing

This commit is contained in:
Fabian Dill 2020-08-30 03:18:10 +02:00
parent 1103d77ca5
commit 7c4772cacf
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ if __name__ == "__main__":
player_string = "" player_string = ""
for i, file in enumerate(player_files, 1): for i, file in enumerate(player_files, 1):
player_string += f"--p{i} {os.path.join(player_files_path, file)} " player_string += f"--p{i} \"{os.path.join(player_files_path, file)}\" "
if os.path.exists("BerserkerMultiServer.exe"): if os.path.exists("BerserkerMultiServer.exe"):