Merge pull request #2202 from bmiklautz/shell_controller
fix: controller function invocation via shell
This commit is contained in:
+1
-1
@@ -260,7 +260,7 @@ def run(
|
|||||||
if c:
|
if c:
|
||||||
pyfile = os.path.join('applications', a, 'controllers', c + '.py')
|
pyfile = os.path.join('applications', a, 'controllers', c + '.py')
|
||||||
pycfile = os.path.join('applications', a, 'compiled',
|
pycfile = os.path.join('applications', a, 'compiled',
|
||||||
"controllers_%s_%s.pyc" % (c, f))
|
"controllers.%s.%s.pyc" % (c, f))
|
||||||
if ((cron_job and os.path.isfile(pycfile))
|
if ((cron_job and os.path.isfile(pycfile))
|
||||||
or not os.path.isfile(pyfile)):
|
or not os.path.isfile(pyfile)):
|
||||||
exec(read_pyc(pycfile), _env)
|
exec(read_pyc(pycfile), _env)
|
||||||
|
|||||||
Reference in New Issue
Block a user