Author: johannes
Date: 2007-06-13 09:11:14 -0500 (Wed, 13 Jun 2007)
New Revision: 9714
Modified:
trunk/gnue-forms/packaging/osx/build-env/Resources/postflight
Log:
use the proper directory for compiling .py files so translation works as
intended
Modified: trunk/gnue-forms/packaging/osx/build-env/Resources/postflight
===================================================================
--- trunk/gnue-forms/packaging/osx/build-env/Resources/postflight 2007-06-13 12:56:54 UTC (rev 9713)
+++ trunk/gnue-forms/packaging/osx/build-env/Resources/postflight 2007-06-13 14:11:14 UTC (rev 9714)
@@ -5,13 +5,14 @@
#
PYTHON=python2.3
-COMPILE=/usr/lib/$PYTHON/compileall.py
-SITELIB="/usr/lib/$PYTHON/site-packages/gnue/forms"
+SITE=`$PYTHON -c "import site; print site.here"`
+COMPILE="$SITE/compileall.py"
+SITELIB="$SITE/site-packages/gnue/forms"
if which $PYTHON >/dev/null 2>&1 && [ -e "$COMPILE" ];
then
for i in $SITELIB ; do
- $PYTHON -O $COMPILE -q $i
- $PYTHON $COMPILE -q $i
+ $PYTHON -O $COMPILE -f $i
+ $PYTHON $COMPILE -f $i
done
fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.