개정판 cdbc7e7f
QDirTreeWidget 수정 전 DB 경로 변경 준비
DTI_PID/DTI_PID/QDirTreeWidget.py | ||
---|---|---|
97 | 97 |
print("Project : " + project.getName()) |
98 | 98 |
projectPath = project.getPath().replace("\\", "/") |
99 | 99 |
self.makeChildDir() |
100 |
self.loadDirectoryInfo(project.getImageFilePath(), self) |
|
100 |
self.loadSymbolInfo() |
|
101 |
#self.loadDirectoryInfo(project.getImageFilePath(), self) |
|
101 | 102 |
self.expandAll() |
102 | 103 |
|
104 |
def loadSymbolInfo(self): |
|
105 |
'''ss''' |
|
106 |
|
|
103 | 107 |
''' |
104 | 108 |
@brief Make Directory |
105 | 109 |
@author Jeongwoo |
DTI_PID/DTI_PID/SG_DbHelper.py | ||
---|---|---|
4 | 4 |
import symbol |
5 | 5 |
import SymbolBase |
6 | 6 |
from sqlite3 import Error |
7 |
from AppDocData import AppDocData |
|
7 | 8 |
|
8 | 9 |
class SG_DbHelper(): |
9 | 10 |
ROOT_DIR = "" |
... | ... | |
83 | 84 |
# WHERE uid = ? |
84 | 85 |
#''' |
85 | 86 |
|
87 |
|
|
88 |
''' |
|
89 |
@history 18.04.20 Jeongwoo Change dbFullPath (Root dir DB→ Each project DB) |
|
90 |
''' |
|
86 | 91 |
def __init__(self, rootDir): |
87 | 92 |
print("DB Helper __init__") |
88 | 93 |
self.ROOT_DIR = rootDir |
89 | 94 |
|
90 |
self.dbFullPath = self.ROOT_DIR+"/"+self.DB_PATH+"/"+self.DB_NAME
|
|
95 |
self.dbFullPath = AppDocData.instance().getCurrentProject().getDbFilePath() + "/" + self.DB_NAME
|
|
91 | 96 |
#if not os.path.isfile(dbFullPath): |
92 | 97 |
# print("DB doesn't exist") |
93 | 98 |
|
내보내기 Unified diff