Rewrite the driver script in Python; use os.path.realpath().

This commit is contained in:
Cat's Eye Technologies 2011-12-19 13:41:09 -06:00
parent a1cc6db760
commit 8c94910440
1 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
#!/bin/sh
#!/usr/bin/env python
python $HOME/checkout/git/Ophis/src/ophismain.py $*
from os.path import realpath, dirname, join
from sys import argv, path
path.insert(0, join(dirname(realpath(argv[0])), '..', 'src'))
import Ophis.Main
Ophis.Main.run_ophis()