- from PLD, fixed python2 files
[packages/python-pygobject.git] / python-pygobject-pyc.patch
1 diff -urN pygobject-2.16.0/codegen/pygobject-codegen-2.0.in pygobject-2.16.0.new/codegen/pygobject-codegen-2.0.in
2 --- pygobject-2.16.0/codegen/pygobject-codegen-2.0.in   2008-12-21 17:30:45.000000000 +0100
3 +++ pygobject-2.16.0.new/codegen/pygobject-codegen-2.0.in       2009-02-16 00:00:54.000000000 +0100
4 @@ -8,4 +8,10 @@
5  PYTHONPATH=$codegendir
6  export PYTHONPATH
7  
8 -exec @PYTHON@ $codegendir/codegen.py "$@"
9 +if [ -f $codegendir/codegen.pyc ]; then
10 +       codegenexe="$codegendir/codegen.pyc"
11 +else
12 +       codegenexe="$codegendir/codegen.py"
13 +fi
14 +
15 +exec @PYTHON@ $codegenexe "$@"