From c4a63e84743462f6dbac8518be64c1e942cec895 Mon Sep 17 00:00:00 2001 From: Roman Bazalevskiy Date: Fri, 11 Dec 2020 16:24:40 +0300 Subject: [PATCH] Command line utilities restored after packagind. --- generate_image | 4 ++++ pyrungps/__init__.py | 16 ---------------- pyrungps/__init__.py~ | 16 ++++++++++++++++ pyrungps_sync | 5 ++++- render_tiles | 3 +++ 5 files changed, 27 insertions(+), 17 deletions(-) create mode 100755 generate_image create mode 100644 pyrungps/__init__.py~ create mode 100755 render_tiles diff --git a/generate_image b/generate_image new file mode 100755 index 0000000..12ffe47 --- /dev/null +++ b/generate_image @@ -0,0 +1,4 @@ +#/usr/bin/sh +/usr/bin/python -m pyrungps.generate_image $@ + + diff --git a/pyrungps/__init__.py b/pyrungps/__init__.py index 94b233f..e69de29 100644 --- a/pyrungps/__init__.py +++ b/pyrungps/__init__.py @@ -1,16 +0,0 @@ -from .render_tiles import deg2num, queue_render, queue_tiles, process_queue -from .parsegpx import check_db_for_training, write_parsed_to_db, write_tree_to_db, print_parsed_file -from .pygeocode import GetDescr, GeoName -from .pygpx import deg2rad, StripPrefix, formattime, Link, GPXTrackPt, GPXRoute, GPXTrackSeg, GPXTrack, GPX -from .pyrungps_sync import get_page, get_gpx_track, get_osm_list, get_osm_gpx, get_db_gpx, get_dbx_list, sync_db, sync_osm, sync_folder -from .generate_image import render_map, render_all - -__all__ = [ - "deg2num", "queue_render", "queue_tiles", "process_queue", - "check_db_for_training", "write_parsed_to_db", "write_tree_to_db", "print_parsed_file", - "GetDescr", "GeoName", - "deg2rad", "StripPrefix", "formattime", "Link", "GPXTrackPt", "GPXRoute", "GPXTrackSeg", "GPXTrack", "GPX", - "get_page", "get_gpx_track", "get_osm_list", "get_osm_gpx", "get_db_gpx", "get_dbx_list", "sync_db", "sync_osm", "sync_folder", - "render_map", "render_all" - ] - \ No newline at end of file diff --git a/pyrungps/__init__.py~ b/pyrungps/__init__.py~ new file mode 100644 index 0000000..94b233f --- /dev/null +++ b/pyrungps/__init__.py~ @@ -0,0 +1,16 @@ +from .render_tiles import deg2num, queue_render, queue_tiles, process_queue +from .parsegpx import check_db_for_training, write_parsed_to_db, write_tree_to_db, print_parsed_file +from .pygeocode import GetDescr, GeoName +from .pygpx import deg2rad, StripPrefix, formattime, Link, GPXTrackPt, GPXRoute, GPXTrackSeg, GPXTrack, GPX +from .pyrungps_sync import get_page, get_gpx_track, get_osm_list, get_osm_gpx, get_db_gpx, get_dbx_list, sync_db, sync_osm, sync_folder +from .generate_image import render_map, render_all + +__all__ = [ + "deg2num", "queue_render", "queue_tiles", "process_queue", + "check_db_for_training", "write_parsed_to_db", "write_tree_to_db", "print_parsed_file", + "GetDescr", "GeoName", + "deg2rad", "StripPrefix", "formattime", "Link", "GPXTrackPt", "GPXRoute", "GPXTrackSeg", "GPXTrack", "GPX", + "get_page", "get_gpx_track", "get_osm_list", "get_osm_gpx", "get_db_gpx", "get_dbx_list", "sync_db", "sync_osm", "sync_folder", + "render_map", "render_all" + ] + \ No newline at end of file diff --git a/pyrungps_sync b/pyrungps_sync index 314e177..a16b3d4 100755 --- a/pyrungps_sync +++ b/pyrungps_sync @@ -1 +1,4 @@ -#!/usr/bin/python pyrungps.py +#/usr/bin/sh +/usr/bin/python -m pyrungps.pyrungps_sync $@ + + diff --git a/render_tiles b/render_tiles new file mode 100755 index 0000000..90a6ffb --- /dev/null +++ b/render_tiles @@ -0,0 +1,3 @@ +#/usr/bin/sh +/usr/bin/python -m pyrungps.render_tiles $@ + -- 2.34.1