#!/bin/bash thisfile=$(readlink -f "$0") thisdir=$(dirname "$thisfile") cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; } gladevcp_demo -u ./complex.py -H ./complex.hal ./complex.ui