Browse Source

code comments

master
Nils 3 years ago
parent
commit
5c83517138
  1. 4
      engine/main.py

4
engine/main.py

@ -241,7 +241,7 @@ class Library(object):
logger.info(f"Parsing {tarFilePath}")
needTarData = True #TODO: If we have images etc. in the future.
needTarData = True
if needTarData:
with tarfile.open(name=tarFilePath, mode='r:') as opentarfile:
iniFileObject = TextIOWrapper(opentarfile.extractfile("library.ini"))
@ -256,7 +256,7 @@ class Library(object):
except KeyError: #file not found
imageAsBytes = None
"""
else: #the default case for now.
else: #TODO: This is permanently deactivated. Could be used in the future to load an extracted-to-cache version of the ini file. But speedup is only marginal.
iniName = str(tarFilePath)[:-4] + ".ini"
self.config = configparser.ConfigParser()
self.config.read(iniName)

Loading…
Cancel
Save