From 8f8a355b877a18e67f448128dc87790c1f01bd60 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 27 Sep 2018 14:19:01 +0900 Subject: [PATCH] qt -> tqt conversion: qtlib -> tqtlib libqt -> libtqt QTLIB -> TQTLIB LIBQT -> LIBTQT Signed-off-by: Michele Calgaro --- src/tdedistutils.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/tdedistutils.py b/src/tdedistutils.py index fa14021..8d8278f 100644 --- a/src/tdedistutils.py +++ b/src/tdedistutils.py @@ -591,9 +591,9 @@ class BuildKControlModule(Command): # Qt lib dir if self.qt_lib_dir is None: canidatepaths = [] - qtlib = os.getenv("TQTLIB") - if qtlib != None: - canidatepaths.append(qtlib) + tqtlib = os.getenv("TQTLIB") + if tqtlib != None: + canidatepaths.append(tqtlib) qtdir = os.getenv("TQTDIR") if qtdir != None: canidatepaths.append(os.path.join(qtdir,get_libdir_name())) @@ -607,9 +607,9 @@ class BuildKControlModule(Command): self.qt_lib_dir = FindFileInPaths('libtqt*',canidatepaths) if self.qt_lib_dir is None: canidatepaths = [] - qtlib = os.getenv("QTLIB") - if qtlib != None: - canidatepaths.append(qtlib) + tqtlib = os.getenv("TQTLIB") + if tqtlib != None: + canidatepaths.append(tqtlib) qtdir = os.getenv("QTDIR") if qtdir != None: canidatepaths.append(os.path.join(qtdir,get_libdir_name())) @@ -620,7 +620,7 @@ class BuildKControlModule(Command): canidatepaths.append("/opt/qt/"+get_libdir_name()) canidatepaths.append("/opt/qt/lib/"+get_libdir_name()) canidatepaths.append("/opt/qt3/lib/"+get_libdir_name()) - self.qt_lib_dir = FindFileInPaths('libqt*',canidatepaths) + self.qt_lib_dir = FindFileInPaths('libtqt*',canidatepaths) if self.qt_lib_dir is None: raise SystemExit, "Failed to find Qt library files" self.announce("Using %s for Qt library files" % self.qt_lib_dir) @@ -641,7 +641,7 @@ class BuildKControlModule(Command): self.pyqt_dir = FindFileInPaths("python_tqt", sys.path) if self.pyqt_dir is None: self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'python_tqt') - if (FindFileInPaths("libqtcmodule*",[self.pyqt_dir]) is None) and (FindFileInPaths("qt*",[self.pyqt_dir]) is None): + if (FindFileInPaths("libtqtcmodule*",[self.pyqt_dir]) is None) and (FindFileInPaths("qt*",[self.pyqt_dir]) is None): raise SystemExit, "Failed to find the PyQt directory: %s" % self.pyqt_dir self.announce("Using %s for PyQt modules" % self.pyqt_dir) @@ -1546,9 +1546,9 @@ class BuildTdeioslave(Command): # Qt lib dir if self.qt_lib_dir is None: canidatepaths = [] - qtlib = os.getenv("TQTLIB") - if qtlib != None: - canidatepaths.append(qtlib) + tqtlib = os.getenv("TQTLIB") + if tqtlib != None: + canidatepaths.append(tqtlib) qtdir = os.getenv("TQTDIR") if qtdir != None: canidatepaths.append(os.path.join(qtdir,get_libdir_name())) @@ -1562,9 +1562,9 @@ class BuildTdeioslave(Command): self.qt_lib_dir = FindFileInPaths('libtqt*',canidatepaths) if self.qt_lib_dir is None: canidatepaths = [] - qtlib = os.getenv("QTLIB") - if qtlib != None: - canidatepaths.append(qtlib) + tqtlib = os.getenv("TQTLIB") + if tqtlib != None: + canidatepaths.append(tqtlib) qtdir = os.getenv("QTDIR") if qtdir != None: canidatepaths.append(os.path.join(qtdir,get_libdir_name())) @@ -1575,7 +1575,7 @@ class BuildTdeioslave(Command): canidatepaths.append("/opt/qt/"+get_libdir_name()) canidatepaths.append("/opt/qt/lib/"+get_libdir_name()) canidatepaths.append("/opt/qt3/lib/"+get_libdir_name()) - self.qt_lib_dir = FindFileInPaths('libqt*',canidatepaths) + self.qt_lib_dir = FindFileInPaths('libtqt*',canidatepaths) if self.qt_lib_dir is None: raise SystemExit, "Failed to find Qt library files" self.announce("Using %s for Qt library files" % self.qt_lib_dir) @@ -1596,7 +1596,7 @@ class BuildTdeioslave(Command): self.pyqt_dir = FindFileInPaths("python_tqt", sys.path) if self.pyqt_dir is None: self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'python_tqt') - if (FindFileInPaths("libqtcmodule*",[self.pyqt_dir]) is None) and (FindFileInPaths("qt*",[self.pyqt_dir]) is None): + if (FindFileInPaths("libtqtcmodule*",[self.pyqt_dir]) is None) and (FindFileInPaths("qt*",[self.pyqt_dir]) is None): raise SystemExit, "Failed to find the PyQt directory: %s" % self.pyqt_dir self.announce("Using %s for PyQt modules" % self.pyqt_dir)