Change qt 4 src location for my new dev machine

This commit is contained in:
Kovid Goyal 2014-05-02 09:38:57 +05:30
parent 6e0c7ee97b
commit 9d610f0d23

View File

@ -13,10 +13,11 @@ from functools import partial
from setup import Command, __appname__, __version__, require_git_master
def qt_sources():
qtdir = glob.glob('/usr/src/qt-*')[-1]
# QT5XX: Change this
qtdir = '/usr/src/qt4'
j = partial(os.path.join, qtdir)
return list(map(j, [
'src/gui/widgets/qdialogbuttonbox.cpp',
'gui/widgets/qdialogbuttonbox.cpp',
]))
class POT(Command): # {{{
@ -152,7 +153,8 @@ class Translations(POT): # {{{
def run(self, opts):
l = {}
execfile(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lc_data.py'), l, l)
exec(compile(open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lc_data.py'))
.read(), os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lc_data.py'), 'exec'), l, l)
lcdata = {k:{k1:v1 for k1, v1 in v} for k, v in l['data']}
self.iso639_errors = []
for f in self.po_files():