新增工程数据

This commit is contained in:
wanyaokun
2024-09-14 11:23:36 +08:00
parent 2b17e44120
commit 0720c6dfcd
94 changed files with 6988 additions and 21 deletions
-15
View File
@@ -76,19 +76,4 @@ class ProjectJson:
def tables(self):
return self._tables
def getProjectName(dir:str):
result = dir.split('\\')
if len(result) > 0:
return result[-1]
return "未知工程名称"
prjJson = ProjectJson(dir)
prjJson.parse()
tb:JsonTable = prjJson.table('工程属性')
records = tb.records()
for record in records:
name = record.value('名称')
if name == '工程名称':
return record.value('')
return ''