Skip to content

Commit

Permalink
Switching to os.system
Browse files Browse the repository at this point in the history
  • Loading branch information
adikhoff committed Oct 16, 2024
1 parent e7a42eb commit f698c03
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f698c03

Please sign in to comment.