Skip to content

Instantly share code, notes, and snippets.

@bulv1ne
Created October 29, 2013 16:33
Show Gist options
  • Save bulv1ne/7218075 to your computer and use it in GitHub Desktop.
Save bulv1ne/7218075 to your computer and use it in GitHub Desktop.
import os
import sys
try:
import canistreamit
print canistreamit
except Exception as e:
print type(e), e
from setuptools.command import easy_install
easy_install.main(['-U', 'canistreamit'])
python = sys.executable
print 'RESTARTING'
sys.stdout.flush()
os.execl(python, python, *sys.argv)
print 'OLALALALA'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment