Skip to content

Instantly share code, notes, and snippets.

@zenazn
Created April 21, 2011 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zenazn/935668 to your computer and use it in GitHub Desktop.
Save zenazn/935668 to your computer and use it in GitHub Desktop.
181 final project run script
#!/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