Skip to content

Commit

Permalink
Trying other os commands
Browse files Browse the repository at this point in the history
  • Loading branch information
adikhoff committed Oct 16, 2024
1 parent 7276a83 commit e7a42eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ def build():

print("Building...")

printDir(inputDir);
printDir(inputDir)

print("trying os.system")
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"])

printDir(inputDir);
print("Printing dir again")
printDir(inputDir)

print(parser.epilog)

Expand Down

0 comments on commit e7a42eb

Please sign in to comment.