Hi Edward, Thanks for the prompt reply.
I use just the same script you copied. Should I change it a bit? Zoltan On Friday, December 4, 2015 at 6:24:43 PM UTC+2, Edward K. Ream wrote: > > On Fri, Dec 4, 2015 at 8:08 AM, Zoltan Benedek <[email protected] > <javascript:>> wrote: > >> >> Now I can import a whole folder by the given script: >> >> http://leoeditor.com/tutorial-scripting.html#id15 >> > > This link is to the scripting tutorial, so I don't know what script you > are talking about. The typical way is to use c.recursiveImport. Like this: > > '''Recursively import all python files in a directory > and clean the result. > ''' > c.recursiveImport( > dir_ = r'<path to directory>', > kind = '@clean', > one_file = False, > safe_at_file = False, # or True > theTypes = None, # Same as ['.py'] > ) > > Does this work for you? > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
