diff --git a/src/tdedistutils.py b/src/tdedistutils.py index 0ba543d..e8cd35e 100644 --- a/src/tdedistutils.py +++ b/src/tdedistutils.py @@ -573,14 +573,11 @@ class BuildKControlModule(Command): canidatepaths.append(os.path.join(install.prefix,"include")) canidatepaths.append("/opt/tqt3/include") canidatepaths.append("/usr/include/tqt3") - self.tqt_inc_dir = FindFileInPaths('ntqstring.h',canidatepaths) - if self.tqt_inc_dir is None: self.tqt_inc_dir = FindFileInPaths('tqstring.h',canidatepaths) if self.tqt_inc_dir is None: raise SystemExit("Failed to find the TQt header file directory") - if FindFileInPaths('ntqstring.h',[self.tqt_inc_dir]) is None: - if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None: - raise SystemExit("Failed to find TQt header files in: %s" % self.tqt_inc_dir) + if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None: + raise SystemExit("Failed to find TQt header files in: %s" % self.tqt_inc_dir) self.announce("Using %s for TQt header files" % self.tqt_inc_dir) # TQt lib dir @@ -1522,12 +1519,10 @@ class BuildTdeioslave(Command): canidatepaths.append(os.path.join(install.prefix,"include")) canidatepaths.append("/opt/tqt3/include") canidatepaths.append("/opt/tqt3/lib/include") - self.tqt_inc_dir = FindFileInPaths('ntqstring.h',canidatepaths) - if self.tqt_inc_dir is None: self.tqt_inc_dir = FindFileInPaths('tqstring.h',canidatepaths) if self.tqt_inc_dir is None: raise SystemExit("Failed to find the TQt header file directory") - if FindFileInPaths('ntqstring.h',[self.tqt_inc_dir]) is None: + if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None: if FindFileInPaths('tqstring.h',[self.tqt_inc_dir]) is None: raise SystemExit("Failed to find TQt header files in: %s" % self.tqt_inc_dir) self.announce("Using %s for TQt header files" % self.tqt_inc_dir)