# usage :  
# C:\INSTALL\Leo-4.7.1-final\launchLeo.py --script C:\SOURCES\dicoBuild.py

path = r"C:\\SOURCES\\myLEO.leo"
import os

g.app.log.disable()
flag,newFrame = g.openWithFileName(path,None)
g.app.log.enable() 
pos = newFrame.c.find_h("MY DICTIONARY")[0]
newFrame.c.selectPosition(pos)
newFrame.c.fileCommands.writeAtFileNodes()
#newFrame.c.executeMinibufferCommand('write-at-file-nodes')
----------------------------------------------------------------------

Help ! This script does not create subdirectories.
I get the messages

 "  path does not exist :   "


It works fine when I execute this command in Leo directly ( shift-ctrl-w)

@bool create_nonexistent_directories = True

Could someone tell me what's wrong.

Leo is so great.    Thanks.

-- 
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