Re: [Rest2web-develop] Use of tilde as HOME indicator in paths
Brought to you by:
mjfoord
From: Michael F. <fuz...@gm...> - 2006-10-09 23:28:29
|
On 27/08/06, Grzegorz Adam Hankiewicz <gr...@ti...> wrote: > > 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. I've just fixed this. I now do 'expanduser' (~) expansion for the paths in the config file and the 'file' keyword in restindexes. Anywhere else ? Fuzzyman ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.Voidspace.org.uk/python/index.shtml Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera |