Created
January 16, 2014 06:33
-
-
Save ernado/8450679 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
| if not hasattr(sys, "argv") or not sys.argv[0]: | |
| sys.argv = ["."] | |
| try: | |
| __file__ = os.path.dirname(os.path.abspath(sys.argv[0])) | |
| os.chdir(__file__) | |
| except OSError: | |
| print "#! Incorrect launch!" | |
| time.sleep(6) | |
| sys.path.insert(0, "library") | |
| reload(sys).setdefaultencoding("utf-8") | |
| socket.setdefaulttimeout(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment