def src(globs, **options):
<EOL>if isinstance(globs, str):<EOL><INDENT>globs = [ globs ]<EOL><DEDENT>files = find_files(globs)<EOL>stream = Stream()<EOL>options["<STR_LIT>"] = config.cwd<EOL>if "<STR_LIT>" in options:<EOL><INDENT>options["<STR_LIT>"] = os.path.abspath(options["<STR_LIT>"])<EOL><DEDENT>for infile in files:<EOL><INDENT>file = File(infile[<NUM_LIT:2>], **options)<EOL>file.relpath = file.path<EOL>file.order = infile[<NUM_LIT:0>]<EOL>file.base = options.get("<STR_LIT>", infile[<NUM_LIT:1>])<EOL>stream.append_file(file)<EOL><DEDENT>stream.end_of_stream()<EOL>if options.get("<STR_LIT>", True):<EOL><INDENT>return stream.pipe(FileReader())<EOL><DEDENT>return stream<EOL>
Read some files and return a stream.