@@ -3,6 +3,11 import os, sys | |||||
3 | from PyQt4 import QtCore, QtGui |
|
3 | from PyQt4 import QtCore, QtGui | |
4 | from PyQt4.QtGui import QApplication |
|
4 | from PyQt4.QtGui import QApplication | |
5 |
|
5 | |||
|
6 | path = os.path.dirname(os.getcwd()) | |||
|
7 | path = os.path.dirname(path) | |||
|
8 | ||||
|
9 | sys.path.insert(0, path) | |||
|
10 | ||||
6 | from schainpy.gui.viewcontroller.initwindow import InitWindow |
|
11 | from schainpy.gui.viewcontroller.initwindow import InitWindow | |
7 | from schainpy.gui.viewcontroller.basicwindow import BasicWindow |
|
12 | from schainpy.gui.viewcontroller.basicwindow import BasicWindow | |
8 | from schainpy.gui.viewcontroller.workspace import Workspace |
|
13 | from schainpy.gui.viewcontroller.workspace import Workspace |
@@ -21,7 +21,7 from schainpy.controller import Project | |||||
21 | from modelProperties import treeModel |
|
21 | from modelProperties import treeModel | |
22 | from collections import OrderedDict |
|
22 | from collections import OrderedDict | |
23 | from os.path import expanduser |
|
23 | from os.path import expanduser | |
24 | from CodeWarrior.Standard_Suite import file |
|
24 | #from CodeWarrior.Standard_Suite import file | |
25 | from comm import * |
|
25 | from comm import * | |
26 |
|
26 | |||
27 | def isRadarFile(file): |
|
27 | def isRadarFile(file): | |
@@ -5235,7 +5235,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5235 | desc = str(self.proDescription.toPlainText()) |
|
5235 | desc = str(self.proDescription.toPlainText()) | |
5236 | datatype = str(self.proComDataType.currentText()) |
|
5236 | datatype = str(self.proComDataType.currentText()) | |
5237 | data_path = str(self.proDataPath.text()) |
|
5237 | data_path = str(self.proDataPath.text()) | |
5238 | if not os.path.exists(path): |
|
5238 | if not os.path.exists(data_path): | |
5239 | self.proOk.setEnabled(False) |
|
5239 | self.proOk.setEnabled(False) | |
5240 | self.console.clear() |
|
5240 | self.console.clear() | |
5241 | self.console.append("Write a correct a path") |
|
5241 | self.console.append("Write a correct a path") |
General Comments 0
You need to be logged in to leave comments.
Login now