Advertisement
rfmonk

subprocess_shell_variables.py

Jan 31st, 2014
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. import subprocess
  2.  
  3. # Command with shell expansion
  4. subprocess.call('echo $HOME', shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement