From: duplo Date: Mon, 19 Apr 2010 08:42:34 +0000 (+0000) Subject: Adapt the BToolchainSearch dialog to the new dir structure. X-Git-Tag: 2.5.0~458 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d1b1e979862ca866eaee324e0363d57bf5a0e13b;p=bertos.git Adapt the BToolchainSearch dialog to the new dir structure. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3450 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BToolchainSearch.py b/wizard/BToolchainSearch.py index 0ac6e28a..e76157a8 100644 --- a/wizard/BToolchainSearch.py +++ b/wizard/BToolchainSearch.py @@ -33,13 +33,15 @@ # Author: Lorenzo Berni # +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 +