[Python-gtkextra-commits] CVS: python-gtkextra2/examples common.py,NONE,1.1 test.sh,1.4,1.5
Status: Beta
Brought to you by:
treeves
From: <pyt...@li...> - 2003-07-02 16:03:48
|
Update of /cvsroot/python-gtkextra/python-gtkextra2/examples In directory sc8-pr-cvs1:/tmp/cvs-serv15724/examples Modified Files: test.sh Added Files: common.py Log Message: Make examples easier to run with python libraries in 'strange' locations. --- NEW FILE: common.py --- # This file is imported by all test programs before anything else. # You probably do not need it, but I do. #import sys #prefix = '/usr/mbench/lib/python2.2/site-packages' #sys.path.insert(0, prefix) #sys.path.insert(0, prefix+'/gtk-2.0') Index: test.sh =================================================================== RCS file: /cvsroot/python-gtkextra/python-gtkextra2/examples/test.sh,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** test.sh 9 Jan 2003 13:16:07 -0000 1.4 --- test.sh 2 Jul 2003 16:03:45 -0000 1.5 *************** *** 13,19 **** if test -z $DEBUG; then ! python -c "execfile('$1')" else python -c "\ import os raw_input('Attach gdb on %d. Press return to begin \"$1\".' % os.getpid()) --- 13,20 ---- if test -z $DEBUG; then ! python -c "import common;execfile('$1')" else python -c "\ + import common import os raw_input('Attach gdb on %d. Press return to begin \"$1\".' % os.getpid()) |