Update UtilPack.py and pupildata.py

This commit is contained in:
2024-05-25 22:35:14 +09:00
parent 5c78235858
commit d4bc88e9b4
2 changed files with 3 additions and 2 deletions

View File

@@ -142,7 +142,8 @@ def ExtractZIP(zip_file, extract_to):
def CreateZIP(output_zip, *files): def CreateZIP(output_zip, *files):
with zipfile.ZipFile(output_zip, 'w') as zf: with zipfile.ZipFile(output_zip, 'w') as zf:
for file in files: for file in files:
zf.write(file, os.path.basename(file)) pathTemp = os.path.join('root', os.path.basename(file))
zf.write(file, pathTemp)
bRet = False bRet = False
if os.path.exists(output_zip): if os.path.exists(output_zip):

View File

@@ -34,7 +34,7 @@ class PupuilInfoFile:
with open(path, 'r') as file: with open(path, 'r') as file:
self.m_data = json.load(file) self.m_data = json.load(file)
# pupil 의 JSON 을 파싱해서 DataClass 반환한다. # pupil 의 JSON 을 파싱해서 DataClass 에 데이터를 넣어 반환한다.
def GetInfo(self): def GetInfo(self):
if None == self.m_data: if None == self.m_data:
return None return None