Adapt the BToolchainSearch dialog to the new dir structure.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 19 Apr 2010 08:42:34 +0000 (08:42 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 19 Apr 2010 08:42:34 +0000 (08:42 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3450 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainSearch.py

index 0ac6e28a5fbfea85cd2d33c3ff408eee40c7d634..e76157a80d726aa62b14a62a1ce06d48223f5b6f 100644 (file)
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
+import os
+
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 import PyQt4.uic as uic
 
 import qvariant_converter
 
-from const import *
+import const
 
 class BToolchainSearch(QDialog):
     """
@@ -56,7 +58,7 @@ class BToolchainSearch(QDialog):
         """
         Sets up the user interface.
         """
-        self.content = uic.loadUi(UI_LOCATION + "/toolchain_search.ui", None)
+        self.content = uic.loadUi(os.path.join(const.DATA_DIR, const.UI_LOCATION, "toolchain_search.ui"), None)
         layout = QVBoxLayout()
         layout.addWidget(self.content)
         self.setLayout(layout)
@@ -129,4 +131,4 @@ class BToolchainSearch(QDialog):
             search_dir_list.remove(unicode(item.text()))
             QApplication.instance().settings.setValue(QString("search_dir_list"), qvariant_converter.convertStringList(list(search_dir_list)))
             self._setSearchButton()
-    
\ No newline at end of file
+