Add sub folders as input sources
This commit is contained in:
		@@ -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()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user