#!/usr/bin/env python """emano menu - openFilenames.py""" import os.path def openFilenames(editor, filenames): if filenames: for s in filenames: if isinstance(s, str): if os.path.exists(s): # @@ editor.open(s) else: editor.menu.open(lines=s.splitlines()) if not hasattr(editor, 'doc'): editor.new() # @@ messy! editor.statwin.default() else: editor.new() if __name__=="__main__": print __doc__