Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/usr/bin/python
  2. # coding=utf-8
  3.  
  4. import os
  5. import tempfile
  6. from subprocess import call
  7.  
  8. def main():
  9. os.environ["TMPDIR"] = "/home/far/tmp"
  10. print(tempfile.gettempdir())
  11. call(["bash", "script.sh"])
  12.  
  13. if __name__ == "__main__":
  14. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement