Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. for dir in dirs:
  2. #run command on the directory here.
  3.  
  4. process = subprocess.Popen(["your_cmd"]...)
  5. process.wait()
  6.  
  7. subprocess.check_output( ... )
  8.  
  9. subprocess.Popen(...).communicate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement