Thanks for your comment.
The purpose of the application is to automate the manipulation of large
numbers of files. For automation I want to be able to have scripts that
I can use for various purposes.
On input, cmd.py handles calling "do_" methods for known commands;
for the rest I want
What you're trying to do and what's not working isn't
entirely clear to me.
But if I had a wxPython application and I wanted to
execute user input (note the _if_) I'd just pop up a window
(I forget how "ShowModal" is spelled in wx right now)
with a text box and an Execute button and a Cancel
butt
I have a cmd.py-derived program (with a wxPython GUI) and want to
execute python statements for lines that are not my own special commands.
So basically it's either:
def do_somecommand(self,arg):
...
or
def default(self,arg):
exec arg in globals(),self.cmdlocals
(where cm