Add sub folders as input sources

This commit is contained in:
Thomas Klaehn 2020-08-11 11:58:51 +02:00
parent 5d88a026cd
commit 320bab0188

View File

@ -124,9 +124,10 @@ class Gpx2Html(object):
self.update()
def update(self):
infiles = glob.glob(os.path.join(self.infolder, '*.gpx'))
for filename in infiles:
self.tracks.add(filename)
for root, _, files in os.walk(self.infolder):
for name in files:
if name.endswith(".gpx"):
self.tracks.add(os.path.join(root, name))
self.logger.info("Begin update of png's/html...")
distances = list()