Explorar o código

fix incorrect variable order in file_path.replace

Sergei Bondarenko %!s(int64=7) %!d(string=hai) anos
pai
achega
830f98573e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Debug/DebugMedia.py

+ 1 - 1
src/Debug/DebugMedia.py

@@ -85,7 +85,7 @@ def merge(merged_path):
                     return False  # No coffeescript compiler, skip this file
 
                 # Replace / with os separators and escape it
-                file_path_escaped = helper.shellquote(file_path.replace(os.path.sep, "/"))
+                file_path_escaped = helper.shellquote(file_path.replace("/", os.path.sep))
 
                 if "%s" in config.coffeescript_compiler:  # Replace %s with coffeescript file
                     command = config.coffeescript_compiler % file_path_escaped