From: Jake S. <js...@gm...> - 2005-08-19 02:02:56
|
Hello. I'm trying to add a function that would allow pointless to execute commands that I specify. I have added the following to register() in the pllbasics.py file: pll.add_command("execute:s", _execute) and I added the following definition to the same file: def _execute(args, parser): code =3D args[0] os.popen('%s'%(code)) return [] The only problem is that the code that I pass with =3Dexecute("some commands") gets executed as soon as I start the presentation, even if it is several slides deep. I'm not sure what to change that would stop the parser from running the _execute routine as soon as it finds it. Thanks for any suggestions. |