Created
October 29, 2013 16:33
-
-
Save bulv1ne/7218075 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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