I believe you may want to use the 'posixpath' module.  If you are using 
join, for example, you can do the following:

 >>> import posixpath
 >>> posixpath.join('/some/dir', 'file')
'/some/dir/file'

Reggie Dugard
Merfin, LLC

LUK ShunTim wrote:

> Hi,
> 
> Is there anyway to use '/' instead of '\\' as a separator the path in
> Windows?
> I tried setting os.sep to '/' but it did not give what I want.
>                                      
> I'd be grateful to any pointer or be told that it's not possible.
> 
> The reason I want this behaviour in Windows is that I want to use
> os.system() to call tex, who complains about '\' and '\\' in the path.
> 
> Cheers,
> ST 
> --
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activepython
> 


_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to