Skip to content

Commit

Permalink
Merge pull request #124 from developmentseed/bug/123-python-naming
Browse files Browse the repository at this point in the history
Use sys.exectuable in place of python string, close #123
  • Loading branch information
wronk committed Dec 7, 2018
2 parents 4c478c4 + a936c9e commit 7b8953c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion label_maker/label.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pylint: disable=unused-argument,too-many-nested-blocks
"""Create label data from OSM QA tiles for specified classes"""

import sys
from os import makedirs, path as op
from subprocess import run, Popen, PIPE
import json
Expand Down Expand Up @@ -76,7 +77,7 @@ def make_labels(dest_folder, zoom, country, classes, ml_type, bounding_box, spar
print('Retiling QA Tiles to zoom level {} (takes a bit)'.format(zoom))
ps = Popen(['tippecanoe-decode', '-c', '-f', mbtiles_file], stdout=PIPE)
stream_filter_fpath = op.join(op.dirname(label_maker.__file__), 'stream_filter.py')
run(['python', stream_filter_fpath, json.dumps(bounding_box)],
run([sys.executable, stream_filter_fpath, json.dumps(bounding_box)],
stdin=ps.stdout, stdout=open(filtered_geo, 'w'))
ps.wait()
run(['tippecanoe', '--no-feature-limit', '--no-tile-size-limit'] + fast_parse +
Expand Down
3 changes: 1 addition & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
astroid>=1.6.0
isort>=4.2.15
pylint==1.8.1
pylint==1.9.1
Sphinx==1.8.0
sphinx-autobuild==0.7.1
sphinxcontrib-fulltoc==1.2.0

0 comments on commit 7b8953c

Please sign in to comment.