I'm using the wonderful file import code as found in scripts to import all 
my Latex files into nodes. This works brilliantly but fails on reaching 
Word backup files (file names prefixed with a ~) This is not a massive 
problem but I thought that the importer would ignore any file that didn't 
have a .tex extension?

ta

IH


Traceback (most recent call last):
  File "C:\Program Files (x86)\Leo_410\leo\core\leoImport.py", line 2005, 
in run
    self.import_dir(root.copy(),dir_)
  File "C:\Program Files (x86)\Leo_410\leo\core\leoImport.py", line 1675, 
in import_dir
    self.import_dir(child,dir_)
  File "C:\Program Files (x86)\Leo_410\leo\core\leoImport.py", line 1675, 
in import_dir
    self.import_dir(child,dir_)
  File "C:\Program Files (x86)\Leo_410\leo\core\leoImport.py", line 1646, 
in import_dir
    dirs,files,files2 = [],os.listdir(dir_),[]
WindowsError: [Error 3] The system cannot find the path specified: 
u'C:\\$ck_14_11_10_1Sam_25.docx\\*.*'




'''Recursively import all python files in a directory and clean the 
result.'''

# Latest change: use c.recursiveImport.

c.recursiveImport(
    dir_ = r'F:\Words\TexFiles',
    one_file = False,
    safe_at_file = False,
    theTypes = ['.tex'], # Same as ['.py']
    use_at_edit = False)


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to