From 07d764f3c6ce5af4fe605f2d11a7e61e58bbfb7b Mon Sep 17 00:00:00 2001 From: Chen Rotem Levy Date: Sat, 30 Apr 2016 13:41:11 +0300 Subject: [PATCH] issue#1310 undo PR#1194 --- gluon/compileapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/compileapp.py b/gluon/compileapp.py index 84d47528..68e993d9 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -676,8 +676,8 @@ def run_view_in(environment): else: filename = pjoin(folder, 'views', view) if os.path.exists(path): # compiled views - x = view.replace('/', '.') - files = ['views.%s.pyc' % x] + x = view.replace('/', '_') + files = ['views_%s.pyc' % x] is_compiled = os.path.exists(pjoin(path, files[0])) # Don't use a generic view if the non-compiled view exists. if is_compiled or (not is_compiled and not os.path.exists(filename)):