Skip to content

Instantly share code, notes, and snippets.

@ramalho ramalho/gnome-version.py
Last active May 1, 2017

Embed
What would you like to do?
Simple script to display Gnome 3 version
#!/usr/bin/env python3
import xml.etree.ElementTree as ET
tags = 'platform minor micro'.split()
doc = ET.parse('/usr/share/gnome/gnome-version.xml')
print('.'.join(doc.find(tag).text for tag in tags))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.