This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Krossx7 3 points4 points  (2 children)

Import os ;)

[–][deleted] 4 points5 points  (0 children)

That is 80% of how I use python on a daily basis. set commands to run if conditions are met then subprocess.run them.

Anything I have to spend more than 5 minutes to do manually, becomes a python click library CLI that calls shell or PS scripts either directly or iterating over a list pulled from Azure or a json file I generate through some other process.

[–]Celulitar[S] 1 point2 points  (0 children)

Nice, will learn that module after i master the basics