Skip to content

Commit

Permalink
Backslashes not allowed in python f-string.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed Oct 20, 2024
1 parent fa27e05 commit 417ab82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/webots_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@

if OS_PLATFORM_TYPE == OS_PLATFORM_TYPE_WIN:

WEBOTS_CONTROLLER = f"\"{WEBOTS_HOME.replace('\\', '/')}/msys64/mingw64/bin/webots-controller.exe\""
WEBOTS_HOME = WEBOTS_HOME.replace('\\', '/')
WEBOTS_CONTROLLER = "\""
WEBOTS_CONTROLLER += f"{WEBOTS_HOME}/msys64/mingw64/bin/webots-controller.exe"
WEBOTS_CONTROLLER += "\""
PROGRAM_NAME = "${PROGNAME}.exe"

elif OS_PLATFORM_TYPE == OS_PLATFORM_TYPE_LINUX:
Expand Down

0 comments on commit 417ab82

Please sign in to comment.