Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Reading files in from the proper directory Date: Tue, 7 Feb 2012 20:00:34 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 12 Message-ID: References: <9bfb3e39-2bc6-4399-90cc-1c53aa06265e@h6g2000yqk.googlegroups.com> NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1328644834 9046 166.84.1.1 (7 Feb 2012 20:00:34 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 7 Feb 2012 20:00:34 +0000 (UTC) User-Agent: nn/6.7.3 Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19980 In <9bfb3e39-2bc6-4399-90cc-1c53aa06265e@h6g2000yqk.googlegroups.com> SMac2347@comcast.net writes: > xls_files = glob.glob(in_dir + "*.xls") You may want to put a directory separator character in between the directory name and the filename glob pattern. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"