From f698c03a78abbcf249d48a386827b12edec75e77 Mon Sep 17 00:00:00 2001 From: Arjan Dikhoff Date: Wed, 16 Oct 2024 14:58:29 +0200 Subject: [PATCH] Switching to os.system --- build.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index 9b131aa063d..6fff370e599 100644 --- a/build.py +++ b/build.py @@ -51,10 +51,13 @@ def build(): os.system("ls -la") print("trying subprocess.run") - subprocess.run(["touch", "test.txt"]) - subprocess.run(["echo", "hello >> test.txt"]) - subprocess.run(["mkdir", "_build"]) - subprocess.run(["cp", "test.txt _build"]) + os.system("touch test.txt") + os.system("echo 'hello' >> test.txt") + os.system("mkdir _build") + os.system("cp test.txt _build") + os.system("cp test.txt _build/index.html") + + os.system() print("Printing dir again") printDir(inputDir)