1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

iiab-update-map - pylint3 says unused

This commit is contained in:
Jerry Vonau 2019-11-18 09:43:37 -06:00
parent 7a1b41649d
commit 99ce889308
2 changed files with 12 additions and 13 deletions

View file

@ -35,19 +35,18 @@
dest: '{{ vector_map_path }}/maplist/assets/' dest: '{{ vector_map_path }}/maplist/assets/'
# REMOVE this stanza once the transition to Python 3 is confirmed # REMOVE this stanza once the transition to Python 3 is confirmed
- name: Install python-geojson package (OS's prior to Ubuntu 19.10) #- name: Install python-geojson package (OS's prior to Ubuntu 19.10)
package: # package:
name: python-geojson # name: python-geojson
state: present # state: present
when: is_raspbian_9 or is_raspbian_10 or is_ubuntu_16 or is_ubuntu_18 or is_debian_9 or is_debian_10 # when: is_raspbian_9 or is_raspbian_10 or is_ubuntu_16 or is_ubuntu_18 or is_debian_9 or is_debian_10
# 2019-10-19: Above python-geojson does not exist on Ubuntu 19.10, so let's # 2019-10-19: Above python-geojson does not exist on Ubuntu 19.10, so let's
# begin the transition to Python 3... # begin the transition to Python 3... currently unused
#- name: Install python3-geojson package (especially for new OS's like Ubuntu 19.10+)
- name: Install python3-geojson package (especially for new OS's like Ubuntu 19.10+) # package:
package: # name: python3-geojson # 2019-10-19: available across most/all recent
name: python3-geojson # 2019-10-19: available across most/all recent # state: present # OS's, but not yet used by osm-vector-maps code?
state: present # OS's, but not yet used by osm-vector-maps code?
- name: Install /usr/bin/iiab-update-map for updating of Map Pack catalog & descriptions - name: Install /usr/bin/iiab-update-map for updating of Map Pack catalog & descriptions
template: template:

View file

@ -1,8 +1,8 @@
#!/usr/bin/python3 #!/usr/bin/python3
# Scan the osm-vector-maps directory, update the osm-vector-maps-idx.json, add menu-defs # Scan the osm-vector-maps directory, update the osm-vector-maps-idx.json, add menu-defs
from geojson import Feature, Point, FeatureCollection, Polygon #from geojson import Feature, Point, FeatureCollection, Polygon
import geojson #import geojson
import json import json
import os import os
import sys import sys