get rid of the QTDIR path detection warning

metadata
Wenzel Jakob 2010-09-02 00:32:11 +02:00
parent 96bc8e0422
commit 20c5a58cf4
1 changed files with 3 additions and 3 deletions

View File

@ -203,9 +203,9 @@ def _detect(env):
moc = env.WhereIs('moc-qt4') or env.WhereIs('moc4') or env.WhereIs('moc')
if moc:
QTDIR = os.path.dirname(os.path.dirname(moc))
SCons.Warnings.warn(
QtdirNotFound,
"QTDIR variable is not defined, using moc executable as a hint (QTDIR=%s)" % QTDIR)
#SCons.Warnings.warn(
# QtdirNotFound,
# "QTDIR variable is not defined, using moc executable as a hint (QTDIR=%s)" % QTDIR)
return QTDIR
raise SCons.Errors.StopError(