added getcfs for run_view_in

This commit is contained in:
ilvalle
2016-09-16 20:19:38 +02:00
parent 897e2ab95d
commit 352c93bc86
2 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -707,7 +707,7 @@ def run_view_in(environment):
for f in files:
compiled = pjoin(path, f)
if os.path.exists(compiled):
code = read_pyc(compiled)
code = getcfs(compiled, compiled, lambda: read_pyc(compiled))
restricted(code, environment, layer=compiled)
return
if not os.path.exists(filename) and allow_generic: