On Wed, Jun 16, 2010 at 8:02 AM, cactus <[email protected]> wrote:
> My script can edit an existing Leo file with LeoBridge, but I didn't > find how to create a new Leo file. openLeoFile(fileName) will open the file or create the file if it does not exist. This isn't clear from the documentation. Thus, the standard code will do what you want:: import leo.core.leoBridge as leoBridge controller = leoBridge.controller(gui='nullGui') g = controller.globals() c = controller.openLeoFile(path) 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.
