diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2022-12-21 14:34:34 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2022-12-21 14:34:34 +0100 |
| commit | a635b7dc1520361feb00c21c2a40d4a9cbaf9778 (patch) | |
| tree | df8d9a901b525bef2841f70b76c891e1b9ad9435 /src/tdedistutils.py | |
| parent | d394f6a6cd6f042b4d306a5d42c0b6c89c554ff5 (diff) | |
| download | pytdeextensions-a635b7dc1520361feb00c21c2a40d4a9cbaf9778.tar.gz pytdeextensions-a635b7dc1520361feb00c21c2a40d4a9cbaf9778.zip | |
Update after rename python extension module from python_tqt to PyTQt.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/tdedistutils.py')
| -rw-r--r-- | src/tdedistutils.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tdedistutils.py b/src/tdedistutils.py index f5e034c..06a6d83 100644 --- a/src/tdedistutils.py +++ b/src/tdedistutils.py @@ -638,9 +638,9 @@ class BuildKControlModule(Command): # PyQt dir if self.pyqt_dir is None: - self.pyqt_dir = FindFileInPaths("python_tqt", sys.path) + self.pyqt_dir = FindFileInPaths("PyTQt", sys.path) if self.pyqt_dir is None: - self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'python_tqt') + self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'PyTQt') 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) @@ -948,7 +948,7 @@ static TDECModule* return_instance( TQWidget *parent, const char *name ) { // Inject a helper function TQString bridge = TQString("import sip_tqt\n" - "from python_tqt import qt\n" + "from PyTQt import qt\n" "def kcontrol_bridge_" FACTORY "(parent,name):\n" " if parent!=0:\n" " wparent = sip_tqt.wrapinstance(parent,qt.TQWidget)\n" @@ -1589,9 +1589,9 @@ class BuildTdeioslave(Command): # PyQt dir if self.pyqt_dir is None: - self.pyqt_dir = FindFileInPaths("python_tqt", sys.path) + self.pyqt_dir = FindFileInPaths("PyTQt", sys.path) if self.pyqt_dir is None: - self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'python_tqt') + self.pyqt_dir = os.path.join(sysconfig.get_python_lib(), 'PyTQt') 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) @@ -2033,7 +2033,7 @@ class CheckPyQt(Command): self.announce("Found Qt version %s." % qtver) try: self.announce("Checking for a working PyQt...") - from python_tqt import qt + from PyTQt import qt self.announce(" ...PyQt is working") except: raise SystemExit, "Couldn't import Qt! Please make sure that PyQt is installed and working." |
