[WS] Create new calling scripts instead of copying

git-svn-id: svn://kolibrios.org@9374 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2021-12-03 20:07:10 +00:00
parent 199799846d
commit 282c7690c8
3 changed files with 26 additions and 24 deletions

View File

@@ -5,11 +5,12 @@ import shutil
import urllib.request
import subprocess
import build
path_to_tools = '..'
path_to_tools_workspace = os.path.dirname(os.path.abspath(__file__))
path_to_tools = os.path.dirname(path_to_tools_workspace)
sys.path.append(path_to_tools)
from workspace.build import build
from lib.makeflop import Floppy
from lib.platform import is_win32, path
from lib.logging import log
@@ -50,7 +51,7 @@ def run_qemu(start_dir = "workspace"):
return subprocess.Popen(a, bufsize = 0, stdout = qemu_stdout, stderr = qemu_stderr, stdin = subprocess.DEVNULL, start_new_session = True)
if __name__ == "__main__":
program_files = build.build()
program_files = build()
os.makedirs("workspace", exist_ok = True)