Author: chrisz
Date: Sun Jun 28 09:57:42 2009
New Revision: 7987
Modified:
Webware/branches/Branch-1_0/install.py
Log:
Ported fix for a long outstanding issue with filenames in tracebacks from the 1.1 branch to the 1.0 branch.
Modified: Webware/branches/Branch-1_0/install.py
==============================================================================
--- Webware/branches/Branch-1_0/install.py (original)
+++ Webware/branches/Branch-1_0/install.py Sun Jun 28 09:57:42 2009
@@ -565,20 +565,21 @@
t = 'WebKit/webkit'
open(t, 'wb').write(open(s, 'rb').read())
- def compileModules(self, force=0):
+ def compileModules(self, force=1):
"""Compile modules in all installed componentes."""
from compileall import compile_dir
print
print 'Byte compiling all modules...'
+ ddir = os.path.abspath('WebKit')
for comp in self._comps:
dir = comp['dirname']
try:
- compile_dir(dir, force=force, quiet=1)
+ compile_dir(dir, ddir=ddir, force=force, quiet=1)
except TypeError: # workaround for Python < 2.3
stdout = sys.stdout
sys.stdout = StringIO()
try:
- compile_dir(dir, force=force)
+ compile_dir(dir, ddir=ddir, force=force)
finally:
sys.stdout = stdout
|