Re: Unnormalizing normalized path in Windows

2008-06-29 Thread Duncan Booth
Julien <[EMAIL PROTECTED]> wrote: > In Windows, when a path has been normalized with os.path.normpath, you > get something like this: > > C:/temp/my_dir/bla.txt # With forward slashes instead or backward > slashes. > > Is it possible to revert that? > magic_function('C:/temp/my_dir/bla.t

Unnormalizing normalized path in Windows

2008-06-29 Thread Julien
Hi, In Windows, when a path has been normalized with os.path.normpath, you get something like this: C:/temp/my_dir/bla.txt # With forward slashes instead or backward slashes. Is it possible to revert that? >>> magic_function('C:/temp/my_dir/bla.txt') 'C:\temp\my_dir\bla.txt' I wonder if ther