Merge pull request #2 from catseye/driver-script

Rewrite the driver script in Python; use os.path.realpath(). This should keep local copies working while still leaving the door open for distutils-based solutions like the original 1.0 had.
This commit is contained in:
Michael C. Martin 2012-04-25 21:19:01 -07:00
commit 579747fc43

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()