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