diff --git a/VERSION b/VERSION index cfc5246a..b8532f2b 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/compileapp.py b/gluon/compileapp.py index b4951ea5..3f0c7104 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -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