Commits

Carl Friedrich Bolz committed 9ecce1c Draft

run psyco more robustly

Comments (0)

Files changed (2)

psyco/python_with_psyco.py

-#!/usr/bin/env python
-
-import os
-import sys
-
-PYTHONPATH = os.path.abspath("psyco/") + ":" + os.environ.get("PYTHONPATH", "")
-env = os.environ.copy()
-env["PYTHONPATH"] = PYTHONPATH
-os.execve("/usr/bin/python2.6", sys.argv, env)

psyco/python_with_psyco.sh

-#!/bin/sh
-PYTHONPATH=`cd psyco; pwd`:$PYTHONPATH python2.6 "$@"
+#!/usr/bin/env bash
+echo `dirname $0`
+PYTHONPATH=`dirname $0`:$PYTHONPATH python2.6 "$@"