From d4bc88e9b491b822523a8d0717fcc65780e96a9c Mon Sep 17 00:00:00 2001 From: Lee Young Hoon Date: Sat, 25 May 2024 22:35:14 +0900 Subject: [PATCH] Update UtilPack.py and pupildata.py --- UtilPack.py | 3 ++- pupildata.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/UtilPack.py b/UtilPack.py index 1d22def..0ca9643 100644 --- a/UtilPack.py +++ b/UtilPack.py @@ -142,7 +142,8 @@ def ExtractZIP(zip_file, extract_to): def CreateZIP(output_zip, *files): with zipfile.ZipFile(output_zip, 'w') as zf: 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 if os.path.exists(output_zip): diff --git a/pupildata.py b/pupildata.py index 1764627..ed6303e 100644 --- a/pupildata.py +++ b/pupildata.py @@ -34,7 +34,7 @@ class PupuilInfoFile: with open(path, 'r') as file: self.m_data = json.load(file) - # pupil 의 JSON 을 파싱해서 DataClass 로 반환한다. + # pupil 의 JSON 을 파싱해서 DataClass 에 데이터를 넣어 반환한다. def GetInfo(self): if None == self.m_data: return None