Commit 8d824fcb authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

patches/python: add linecache for ERP5 python scripts

parent 307b6815
...@@ -158,7 +158,7 @@ def patch_linecache(): ...@@ -158,7 +158,7 @@ def patch_linecache():
return data.splitlines(True) if data is not None else () return data.splitlines(True) if data is not None else ()
if basename(filename) == 'Script (Python)': if basename(filename) in ('Script (Python)', 'ERP5 Python Script', 'ERP5 Workflow Script'):
try: try:
script = module_globals['script'] script = module_globals['script']
if script._p_jar.opened: if script._p_jar.opened:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment