[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r31953 - branches/ctypes-python-bindings

From: Peter Samuelson <peter_at_p12n.org>
Date: Tue, 1 Jul 2008 14:24:04 -0500

>> + for path in os.environ["PATH"].split(":"):
>> + if os.path.exists(path + "/" + ctypesgen_basename):
>> + ctypesgen = path + "/" + ctypesgen_basename

[Blair Zajac]
> Wouldn't it be safer to use os.path.join() instead of string
> concatenation? This is for non-Unix platforms.

For that matter, Windows splits PATH on ";", not ":".

-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-01 21:24:14 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.