#! /usr/bin/python2.7
"""
Linux evennia launcher wrapper. Windows (which doesn't support
shebangs but which associates .py files with the python launcher) will
use the evennia.py program directly.
"""

import os
import sys
import subprocess

# set up the path and launch evennia.py
evenniapath = os.path.join(os.path.dirname(os.path.abspath(__file__)), "evennia.py")
subprocess.Popen([sys.executable] + [evenniapath] + sys.argv[1:])
