[PyQt] Configure write incorrect qt path in Makefile

Alexandr N Zamaraev tonal at promsoft.ru
Wed Aug 12 09:45:34 BST 2009


I use several versions and builds of Qt.
Switch them via symlink.
Bat after configure PyQt some Qt path in Makefile has mixin slash:
	@if not exist C:/Lang/qt/qt4.5.2\qsci\api\python mkdir 
C:/Lang/qt/qt4.5.2\qsci\api\python
	copy /y PyQt4.api C:/Lang/qt/qt4.5.2\qsci\api\python\PyQt4.api
You may need to call os.path.normpath for each path obtained in 
get_qt_configuration?

P.S. My Environment:
OS Windows Vista Home Basic Ru + sp2
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit 
(Intel)] on win32
Qt 4.5.2 (self build)
mingw32 g++ (GCC) 4.4.0
GNU ld (GNU Binutils) 2.19
mingwrt 3.15.2
w32api 3.13

P.P.S. Path for configure.py:
diff -r 73820d292c75 configure.py
--- a/configure.py	Mon Aug 10 12:18:36 2009 +0700
+++ b/configure.py	Wed Aug 12 15:44:39 2009 +0700
@@ -35,6 +35,7 @@

  import sys
  import os
+import os.path
  import glob
  import optparse
  import shutil
@@ -1768,12 +1769,12 @@
      global qt_dir, qt_incdir, qt_libdir, qt_bindir, qt_datadir, 
qt_pluginsdir
      global qt_version, qt_edition, qt_licensee, qt_shared, qt_xfeatures

-    qt_dir = lines[0]
-    qt_incdir = lines[1]
-    qt_libdir = lines[2]
-    qt_bindir = lines[3]
-    qt_datadir = lines[4]
-    qt_pluginsdir = lines[5]
+    qt_dir = os.path.normpath(lines[0])
+    qt_incdir = os.path.normpath(lines[1])
+    qt_libdir = os.path.normpath(lines[2])
+    qt_bindir = os.path.normpath(lines[3])
+    qt_datadir = os.path.normpath(lines[4])
+    qt_pluginsdir = os.path.normpath(lines[5])
      qt_version = lines[6]
      qt_edition = lines[7]
      qt_licensee = lines[8]


More information about the PyQt mailing list