Skip to content
Commit a3aae2e1 authored by Joe R. Nassimian's avatar Joe R. Nassimian Committed by Martin Pitt
Browse files

[API add] Add API for checking pygobject's version

Add a gi.__version__ attribute for the textual version, and gi.version_info for
a version triple similar to sys.version_info.

Also add a gi.require_version(<minimum_version>) which raises an exception if
the pygobject version is older.

https://bugzilla.gnome.org/show_bug.cgi?id=680176



Signed-off-by: default avatarMartin Pitt <martinpitt@gnome.org>
parent a2d9b71d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment