Re: [Rest2web-develop] Use of tilde as HOME indicator in paths
Brought to you by:
mjfoord
From: Grzegorz A. H. <gr...@ti...> - 2006-08-27 17:29:21
|
On 2006-08-27, Michael Foord <fuz...@vo...> wrote: > Ok, but isn't a tilde also a valid part of a path name ? (I'm > not Lunix user, so I don't know these things - but at least on > Windoze it can be a valid part of a filename.) Yes, which under Windows could be expanded to C:\documentblah blah\user or whatever it is. > Do you just mean (or particularly mean) in the config file ? How > about if paths starting with a tilde were expanded ? os.path.expanduser() only expands the tilde as first character, as any other implementation. Knowing this you can prefix a local file with `./' if it starts with tilde, though right know the other alternative is using full paths, which wouldn't allow tilde expansion anyway. |