fixed problem with compileapp and compiled apps

This commit is contained in:
mdipierro
2013-10-13 08:10:56 -05:00
parent c3a7486930
commit bf3d0bdd3d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.7.3-stable+timestamp.2013.10.12.09.46.51
Version 2.7.3-stable+timestamp.2013.10.13.08.09.54
+2 -1
View File
@@ -522,7 +522,6 @@ def run_models_in(environment):
models = sorted(listdir(cpath, '^models[_.][\w.]+\.pyc$', 0),model_cmp)
else:
models = sorted(listdir(path, '^\w+\.py$', 0, sort=False),model_cmp)
n = len(path)+1
models_to_run = None
for model in models:
@@ -532,8 +531,10 @@ def run_models_in(environment):
regex = re_compile('|'.join(regex))
if models_to_run:
if compiled:
n = len(cpath)+8
fname = model[n:-4].replace('.','/')+'.py'
else:
n = len(path)+1
fname = model[n:].replace(os.path.sep,'/')
if not regex.search(fname) and c != 'appadmin':
continue