2010/9/27 Peter Landgren <peter.talken@telia.com>
Ok,

Gramps use in all other places:

platform.system()

according to:
http://docs.python.org/library/platform.html?highlight=platform#module-platform

Many possibilities then.


Peter, as you have windows box to test, make it consistent so that it works in windows.
Just don't break anything for us linux users.

Benny
 
/Peter

> On Mon, Sep 27, 2010 at 9:01 AM, Peter Landgren <peter.talken@telia.com> wrote:
> > Hi,
> >
> > I have found in write.py and only there:
> >
> > if os.name == 'nt':
> >
> > to detect Windows.
> >
> > Any special reason for this?
> >
> > I think it would be more consistent to use
> > if  constfunc.win():
> >
> > /Peter
>
> But using os.name='nt' is the python way to check if your code is
> being run on Windows:
> http://docs.python.org/library/os.html
>
> Jeremy Bicha
>
> ---------------------------------------------------------------------------
> --- Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gramps-devel

--
Peter Landgren
Talken Hagen
671 94  BRUNSKOG
0570-530 21
070-345 0964
peter.talken@telia.com
Skype: pgl4820.2

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel