Menu

Commit [r25643]  Maximize  Restore  History

Hack in the script UI for handling missing user functions due to it being renamed.

This script UI requires a different solution as the prompt UI. The script is executed via the runpy
Python module and there appears to be no clean way of catching each command before it is executed.
So instead, prior to executing the script, the contents of the script are read and old user
functions are searched for using re.search(). The old user function name has "(" appended to it in
the search so that it is sure that it is a user function call. And the old function must have a
space or newline character preceding it.

bugman 2014-09-04

changed /trunk/prompt/interpreter.py
/trunk/prompt/interpreter.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.