Created
April 21, 2011 23:01
-
-
Save zenazn/935668 to your computer and use it in GitHub Desktop.
181 final project run script
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
#!/usr/bin/env python | |
import platform | |
import sys | |
import os | |
path = os.path.dirname(os.path.realpath(__file__)) | |
if platform.system() == 'Darwin': | |
if map(int, platform.release().split('.')) >= [10, 0, 0]: | |
# Mac 10.6 | |
sys.path.insert(1, path + '/mac') | |
else: | |
# Mac 10.5 | |
sys.path.append(1, path + '/mac10.5') | |
elif platform.system() == 'Linux': | |
# 32bit / 64bit Linux | |
sys.path.insert(1, path + '/linux' + platform.architecture()[0][:2]) | |
import run_game | |
run_game.main(sys.argv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment