What's the perfect (OS independent) way of storing filepaths ?
- From: Stef Mientki <stef.mientki@xxxxxxxxx>
- Date: Sun, 19 Oct 2008 14:35:01 +0200
hello,
I (again) wonder what's the perfect way to store, OS-independent, filepaths ?
I can think of something like:
- use a relative path if drive is identical to the application (I'm still a Windows guy)
- use some kind of OS-dependent translation table if on another drive
- use ? if on a network drive
I'm interested what you all use for this kind of problem.
And I wonder why there isn't a standard solution / library in Python available.
thanks,
Stef Mientki
.
- Follow-Ups:
- Re: What's the perfect (OS independent) way of storing filepaths ?
- From: Robert Brown
- Re: What's the perfect (OS independent) way of storing filepaths ?
- From: Lawrence D'Oliveiro
- Re: What's the perfect (OS independent) way of storing filepaths ?
- From: Grant Edwards
- Re: What's the perfect (OS independent) way of storing filepaths ?
- From: Steven D'Aprano
- Re: What's the perfect (OS independent) way of storing filepaths ?
- From: drobinow@xxxxxxxxx
- Re: What's the perfect (OS independent) way of storing filepaths ?
- Prev by Date: Re: loops
- Next by Date: Re: inserting Unicode character in dictionary - Python
- Previous by thread: urllib2.HTTPError: HTTP Error 204: NoContent
- Next by thread: Re: What's the perfect (OS independent) way of storing filepaths ?
- Index(es):
Relevant Pages
|