[pypy-dev] PYPYLOG and colon as a special character
Armin Rigo
arigo at tunes.org
Fri Jun 13 17:08:07 CEST 2014
Hi Christian,
On 13 June 2014 16:21, Christian Hudon <chrish at pianocktail.org> wrote:
> The colon character is valid in paths in Windows (because of the drive
> letter), but not in filenames (it's used for supporting different streams,
> which hardly anyone uses). So doing that check on
> os.path.basename(os.getenv("PYPYLOG")) should work under Windows also.
You're missing the fact that "C:\Foo" might represent either a path
name (case 1), or (case 3) "section:filename", with section "C" and
path "\Foo".
A bientôt,
Armin.
More information about the pypy-dev
mailing list