Activity Team/FAQ: Difference between revisions

Line 71: Line 71:
or:
or:
  python -c "from jarabe import config; print config.version"
  python -c "from jarabe import config; print config.version"
==== How do I know if my activity is running on an OLPC XO laptop? ====
:You can test for the existence of '/etc/olpc-release':
if os.path.exists('/etc/olpc-release'):
    ...