What's the perfect (OS independent) way of storing filepaths ?

Stef Mientki stef.mientki at gmail.com
Sun Oct 19 14:35:01 CEST 2008


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



More information about the Python-list mailing list