From: Antonio Ospite Date: Tue, 21 Oct 2014 13:33:17 +0000 (+0200) Subject: winfreed.py: sort packages by name before processing X-Git-Url: https://git.ao2.it/winfreed.git/commitdiff_plain/83de23bea6a5ffb0c6f9d31cc73a694a477ccf27?ds=sidebyside winfreed.py: sort packages by name before processing --- diff --git a/winfreed.py b/winfreed.py index ef96bc5..c49de16 100755 --- a/winfreed.py +++ b/winfreed.py @@ -49,7 +49,7 @@ def get_pkg(pkg_file): def process_all(path, cb): - listing = glob.glob(os.path.join(path, '*.ini')) + listing = sorted(glob.glob(os.path.join(path, '*.ini'))) for pkg_file in listing: pkg = get_pkg(pkg_file) if not pkg: