From bd07f0807d8536d8563c3ba43b1b90e79b4fac01 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Fri, 3 Dec 2021 20:13:38 +0000 Subject: [PATCH] [WS] Make it work on Windows git-svn-id: svn://kolibrios.org@9375 a494cfbc-eb01-0410-851d-a64ba20cac60 --- _tools/get_started.py | 1 + 1 file changed, 1 insertion(+) diff --git a/_tools/get_started.py b/_tools/get_started.py index 563ad0566c..2644069b05 100644 --- a/_tools/get_started.py +++ b/_tools/get_started.py @@ -7,6 +7,7 @@ import os from lib.logging import log def generate_script_executing_script(script_to_execute): + script_to_execute = script_to_execute.replace("\\", "\\\\") contents = "" contents += "from importlib.machinery import SourceFileLoader\n" contents += f"SourceFileLoader('__main__', '{script_to_execute}').load_module()\n"