From daf593378bf2c529ffad9b22d5b8ef1ab934bf9a Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 23 Jul 2011 22:21:28 -1000 Subject: [PATCH] put the extract methods back onto MCLevel --- schematic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schematic.py b/schematic.py index e2d24c4..2dff546 100644 --- a/schematic.py +++ b/schematic.py @@ -468,6 +468,8 @@ def extractSchematicFrom(sourceLevel, box): return tempSchematic +MCLevel.extractSchematic = extractSchematicFrom + import tempfile def extractZipSchematicFrom(sourceLevel, box, zipfilename): #converts classic blocks to alpha @@ -514,6 +516,8 @@ def extractZipSchematicFrom(sourceLevel, box, zipfilename): import shutil shutil.rmtree(filename) +MCLevel.extractZipSchematic = extractZipSchematicFrom + from zipfile import ZipFile, ZIP_STORED def zipdir(basedir, archivename): assert os.path.isdir(basedir)