changeset 1089:10205bd0e0b7

corrected bug
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 05 Dec 2018 16:58:54 -0500
parents 0680387a89bb
children 97247e44b827
files trafficintelligence/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/trafficintelligence/utils.py	Wed Nov 14 12:30:50 2018 -0500
+++ b/trafficintelligence/utils.py	Wed Dec 05 16:58:54 2018 -0500
@@ -1057,7 +1057,7 @@
     If remove is True, the filenames are stripped from the extension'''
     d = Path(dirname)
     if d.is_dir():
-        tmp = [str(f) for f in d.glob('*.extension')]
+        tmp = [str(f) for f in d.glob('*.'+extension)]
         if remove:
             return [removeExtension(f, extension) for f in tmp]
         else: