From 6b0177979f040bb67c346be0e20b3a995afffa82 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 4 Oct 2013 14:39:32 -0500 Subject: [PATCH] fixed issue 1705, sorting of model, thanks Anthony --- VERSION | 2 +- gluon/compileapp.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index deacfac2..4cc2f05c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.4-stable+timestamp.2013.10.04.00.15.28 +Version 2.6.4-stable+timestamp.2013.10.04.14.38.32 diff --git a/gluon/compileapp.py b/gluon/compileapp.py index bede5c9e..5fa14a70 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -514,11 +514,11 @@ def run_models_in(environment): for model in listdir(cpath, '^models_\w+\.pyc$', 0): restricted(read_pyc(model), environment, layer=model) path = pjoin(cpath, 'models') - models = listdir(path, '^\w+\.pyc$', 0, sort=False) + models = listdir(path, '^\w+\.pyc$', 0, sort=True) compiled = True else: path = pjoin(folder, 'models') - models = listdir(path, '^\w+\.py$', 0, sort=False) + models = listdir(path, '^\w+\.py$', 0, sort=True) compiled = False n = len(path) + 1 for model in models: