From 128ff10ade36ca164aa25f1a2a6b227cf89636c4 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 11 Dec 2012 08:25:48 -0600 Subject: [PATCH] sorting importing models was broken, now fixed, thanks Joel Samuelsson --- VERSION | 2 +- gluon/compileapp.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 9e7290f3..76d89e63 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.3.0 (2012-12-10 21:31:49) rc1 +Version 2.3.0 (2012-12-11 08:25:04) rc1 diff --git a/gluon/compileapp.py b/gluon/compileapp.py index 875f732b..0f2f1224 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -515,11 +515,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) compiled = True else: path = pjoin(folder, 'models') - models = listdir(path, '^\w+\.py$', 0, sort=False) + models = listdir(path, '^\w+\.py$', 0) compiled = False n = len(path) + 1 for model in models: