Skip to content

Commit 7b8953c

Browse files
authored
Merge pull request #124 from developmentseed/bug/123-python-naming
Use sys.exectuable in place of python string, close #123
2 parents 4c478c4 + a936c9e commit 7b8953c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

label_maker/label.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# pylint: disable=unused-argument,too-many-nested-blocks
22
"""Create label data from OSM QA tiles for specified classes"""
33

4+
import sys
45
from os import makedirs, path as op
56
from subprocess import run, Popen, PIPE
67
import json
@@ -76,7 +77,7 @@ def make_labels(dest_folder, zoom, country, classes, ml_type, bounding_box, spar
7677
print('Retiling QA Tiles to zoom level {} (takes a bit)'.format(zoom))
7778
ps = Popen(['tippecanoe-decode', '-c', '-f', mbtiles_file], stdout=PIPE)
7879
stream_filter_fpath = op.join(op.dirname(label_maker.__file__), 'stream_filter.py')
79-
run(['python', stream_filter_fpath, json.dumps(bounding_box)],
80+
run([sys.executable, stream_filter_fpath, json.dumps(bounding_box)],
8081
stdin=ps.stdout, stdout=open(filtered_geo, 'w'))
8182
ps.wait()
8283
run(['tippecanoe', '--no-feature-limit', '--no-tile-size-limit'] + fast_parse +

requirements-dev.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
astroid>=1.6.0
21
isort>=4.2.15
3-
pylint==1.8.1
2+
pylint==1.9.1
43
Sphinx==1.8.0
54
sphinx-autobuild==0.7.1
65
sphinxcontrib-fulltoc==1.2.0

0 commit comments

Comments
 (0)