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() self.update()
def update(self): def update(self):
infiles = glob.glob(os.path.join(self.infolder, '*.gpx')) for root, _, files in os.walk(self.infolder):
for filename in infiles: for name in files:
self.tracks.add(filename) if name.endswith(".gpx"):
self.tracks.add(os.path.join(root, name))
self.logger.info("Begin update of png's/html...") self.logger.info("Begin update of png's/html...")
distances = list() distances = list()