Guest User

Untitled

a guest
May 26th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. import os
  2.  
  3. args = ['sh', '-c', "/usr/local/python -c 'import sys; print sys.executable'"]
  4. env = { 'PATH': '/usr/local/bin' }
  5.  
  6. print os.spawnvpe(os.P_WAIT, args[0], args, env)
Add Comment
Please, Sign In to add comment