Update UtilPack.py and pupildata.py
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user