[Bf-committers] Native path handling for blender
theeth at yahoo.com
Thu Feb 23 14:55:32 CET 2006
--- Toni Alatalo <antont at kyperjokki.fi> wrote:
> On Thursday 23 February 2006 14:08, Robert Wenzlaff
> (AB8TD) wrote:
> > > Some functions have been removed : duplicate
> features or not needed
> > > anymore. There is some confusion on Windows with
> '/' and '\', I don't
> > Windows allows "/" in code but not on the
> commandline which is where the
> > confusion comes from. It's nice to use it in
> code since you have to
> iirc also in py code '/' works on also win32 as the
> directory separation
> character, but i am not sure (and have no access to
> a win box now so cant
> python also has a os.sep constant, that is '/' on
> posix, '\' in win32, and
> iirc it was ':' on macos-pre-x (macosx is posix) ..
> and i guess it is that
> other thing on .. whatever that other operating
> system mentioned here was ..
> some blender scripts use os.sep and i tend to use it
The os.path module has sep and altsep.
On win32, altsep is / and sep is \, on posix (linux),
altsep is none.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Bf-committers