sugar equivalent of uname?

Tomeu Vizoso tomeu at
Sun Jan 3 09:45:21 EST 2010

On Sun, Jan 3, 2010 at 15:52, Mikus Grinbergs <mikus at> wrote:
>> the portable way is to use jarabe.config.version for >=0.84
>> and assume 0.82 if that's not present.
> When running on an XO, how does one access 'jarabe.config.version' ?
> It would be nice if the sugar version could be determined from within a
> batch script.  But I looked (in >=0.84 builds) for a file by that name,
> or for a file with that content, and came up empty.

Should be something like this (don't have a XO around right now):

$ python -c "from jarabe import config; print config.version"

You can also grep the file jarabe/



> Thanks for your attention,  mikus

«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David

More information about the Devel mailing list