Skip to content

Instantly share code, notes, and snippets.

@papachan
Last active October 13, 2015 00:38
Show Gist options
  • Save papachan/4112482 to your computer and use it in GitHub Desktop.
Save papachan/4112482 to your computer and use it in GitHub Desktop.
try:
import time, subprocess, os, sys, platform
except Exception as e:
sys.stderr.write(str(e))
exit(84)
def log_msg(msg):
log=open("log","a")
log.write(str(msg)+"\n")
log.close()
def Main():
log_msg(sys.path)
if __name__ == '__main__':
if(platform.python_version() != "3.2.3"):
sys.exit()
Main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment