#!/bin/sh
#
# License: MIT (see license.txt)
# THIS PROGRAM COMES WITH NO WARRANTY
#
# Copyright 2011 Carsten Grohmann
#
# Shell script to start wxGlade
# 
# The wxGlade main script is called wxglade.py. It will be searched at
# two places:
#  1. parallel to this script
#  2. in the module directory of the current Python

# determinate current python version
PY_VERSION=$(python -c 'import sys; print sys.version[:3]')

WXGLADE_MODULE_PATH="/usr/lib/python${PY_VERSION}/dist-packages/wxglade"

WXG_PATH="${WXGLADE_MODULE_PATH}/wxglade.py"

exec python "${WXG_PATH}" "$@"
