bicycle-statistics: Restructure
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
This commit is contained in:
0
bicycle_statistics/__init__.py
Normal file
0
bicycle_statistics/__init__.py
Normal file
18
bicycle_statistics/__main__.py
Normal file
18
bicycle_statistics/__main__.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import argparse
|
||||
import sys
|
||||
from gpx2html import Gpx2Html
|
||||
|
||||
def parse_args():
|
||||
'''Shell argument parser.'''
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('infolder', help='Specify the in folder.')
|
||||
parser.add_argument('outfolder', help='Specify the out folder.')
|
||||
return parser.parse_args()
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
gpx2html = Gpx2Html(args.infolder, args.outfolder)
|
||||
gpx2html.process()
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
Reference in New Issue
Block a user