Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added pymclevel as a submodule.

This necessitated some minor changes in any code that referenced
pymclevel.
  • Loading branch information...
commit 4ab0a6676239ad0d3643387b03d12e9376ce421d 1 parent f3a4faf
@mathuin authored
View
3  .gitmodules
@@ -0,0 +1,3 @@
+[submodule "pymclevel"]
+ path = pymclevel
+ url = git://github.com/mcedit/pymclevel.git
View
4 BuildMaps.py
@@ -3,8 +3,6 @@
import logging
logging.basicConfig(level=logging.WARNING)
import os
-import sys
-sys.path.append('..')
from utils import cleanmkdir
from pymclevel import mclevel
import argparse
@@ -40,6 +38,6 @@ def main():
os.system(command)
if __name__ == '__main__':
- sys.exit(main())
+ main()
View
5 BuildRegion.py
@@ -4,7 +4,6 @@
logging.basicConfig(level=logging.WARNING)
from tile import Tile
from utils import setspawnandsave
-import sys
import argparse
import os
import yaml
@@ -12,8 +11,6 @@
from itertools import product
from tree import Tree, treeObjs
from ore import Ore, oreObjs
-
-sys.path.append('..')
from pymclevel import mclevel
def buildtile(args):
@@ -119,5 +116,5 @@ def main():
setspawnandsave(world, peak)
if __name__ == '__main__':
- sys.exit(main())
+ main()
1  pymclevel
@@ -0,0 +1 @@
+Subproject commit 17117c8671936fddd43a0d8893985e53bfb22dd8
View
2  region.py
@@ -14,8 +14,6 @@
import tarfile
from utils import cleanmkdir
from terrain import Terrain
-import sys
-sys.path.append('..')
from pymclevel import mclevel
from osgeo import gdal, osr
View
2  schematic.py
@@ -1,8 +1,6 @@
# schematic module
from utils import height
import os
-import sys
-sys.path.append('..')
from pymclevel import mclevel
class Schematic:
View
2  tile.py
@@ -12,8 +12,6 @@
from osgeo import gdal
from osgeo.gdalconst import GA_ReadOnly
-import sys
-sys.path.append('..')
from pymclevel import mclevel, box
from terrain import Terrain
from tree import Tree, treeObjs
View
2  utils.py
@@ -2,8 +2,6 @@
import os
import shutil
from memoize import memoize
-import sys
-sys.path.append('..')
from pymclevel.materials import alphaMaterials
def cleanmkdir(dir):
Please sign in to comment.
Something went wrong with that request. Please try again.