This can cause issues because the calling function handles the closing
of the files (in this case load() instead of _load()) and the gcodeFile
could also be a list or a bigDataStorage which do not have a close() method.
Fixes issue #91
if self.progressCallback is not None:
if self.progressCallback(float(gcodeFile.tell()) / float(self._fileSize)):
#Abort the loading, we can safely return as the results here will be discarded
- gcodeFile.close()
return
currentLayer = [currentPath]
line = line[0:line.find(';')]