commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9714 - trunk/gnue-forms/packaging/osx/build-env/Resources


From: johannes
Subject: [gnue] r9714 - trunk/gnue-forms/packaging/osx/build-env/Resources
Date: Wed, 13 Jun 2007 09:11:14 -0500 (CDT)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]