sorting importing models was broken, now fixed, thanks Joel Samuelsson

This commit is contained in:
mdipierro
2012-12-11 08:25:48 -06:00
parent a98f45f875
commit 128ff10ade
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.0 (2012-12-10 21:31:49) rc1
Version 2.3.0 (2012-12-11 08:25:04) rc1
+2 -2
View File
@@ -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: