On Fri, May 21, 2010 at 11:06 AM, brian <[email protected]> wrote:
> How do I launch a program from within leo?

There are many ways.  On Windows, you can use os.system:

import os
os.system('cd c:\\')
os.system('dir')

For more control, you can use Python's subprocess library:

http://docs.python.org/library/subprocess.html

As always, you can run such code from any Leo node.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to