Re: Pythonic Idiom For Searching An Include Path

2010-06-25 Thread Tim Daneliuk
On 6/25/2010 7:25 AM, Jorgen Grahn wrote: > On Thu, 2010-06-24, Nobody wrote: >> On Wed, 23 Jun 2010 17:27:16 -0500, Tim Daneliuk wrote: >> >>> Given a program 'foo' that takes a command line argument '-I >>> includefile', I want to be able to look for 'includefile' in a path >>> specified in an en

Re: Pythonic Idiom For Searching An Include Path

2010-06-25 Thread Jorgen Grahn
On Thu, 2010-06-24, Nobody wrote: > On Wed, 23 Jun 2010 17:27:16 -0500, Tim Daneliuk wrote: > >> Given a program 'foo' that takes a command line argument '-I >> includefile', I want to be able to look for 'includefile' in a path >> specified in an environment variable, 'FOOPATH'. >> >> I'd like a

Re: Pythonic Idiom For Searching An Include Path

2010-06-24 Thread Tim Daneliuk
On 6/24/2010 2:57 AM, Gregory Ewing wrote: > Tim Daneliuk wrote: >> "If 'includefile' contains one or more path separator characters, >>ignore 'FOOPATH'. > > Are you sure that's exactly what you want? Usually with > such things the distinction is absolute vs. relative, > not whether there is

Re: Pythonic Idiom For Searching An Include Path

2010-06-24 Thread Gregory Ewing
Tim Daneliuk wrote: "If 'includefile' contains one or more path separator characters, ignore 'FOOPATH'. Are you sure that's exactly what you want? Usually with such things the distinction is absolute vs. relative, not whether there is more than one pathname component. E.g. in a C file, #i

Re: Pythonic Idiom For Searching An Include Path

2010-06-24 Thread Nobody
On Wed, 23 Jun 2010 17:27:16 -0500, Tim Daneliuk wrote: > Given a program 'foo' that takes a command line argument '-I > includefile', I want to be able to look for 'includefile' in a path > specified in an environment variable, 'FOOPATH'. > > I'd like a semantic that says: > > "If 'includefil

Re: Pythonic Idiom For Searching An Include Path

2010-06-23 Thread Chris Rebert
On Wed, Jun 23, 2010 at 3:27 PM, Tim Daneliuk wrote: > Given a program 'foo' that takes a command line argument '-I > includefile', I want to be able to look for 'includefile' in a path > specified in an environment variable, 'FOOPATH'. > > I'd like a semantic that says: > >  "If 'includefile' con

Pythonic Idiom For Searching An Include Path

2010-06-23 Thread Tim Daneliuk
Given a program 'foo' that takes a command line argument '-I includefile', I want to be able to look for 'includefile' in a path specified in an environment variable, 'FOOPATH'. I'd like a semantic that says: "If 'includefile' contains one or more path separator characters, ignore 'FOOPATH'.