mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-23 09:21:23 +03:00
[WS] Make it work on Windows
git-svn-id: svn://kolibrios.org@9375 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
282c7690c8
commit
bd07f0807d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user