pygst.py.in: give the correct error when not finding the version

Original commit message from CVS:
* pygst.py.in: give the correct error when not finding the version
This commit is contained in:
Thomas Vander Stichele 2005-12-22 11:20:44 +00:00
parent 39d037c6d6
commit 2986e09cfe
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-12-22 Thomas Vander Stichele <thomas at apestaart dot org>
* pygst.py.in: give the correct error when not finding the version
2005-12-20 Edward Hervey <edward@fluendo.com> 2005-12-20 Edward Hervey <edward@fluendo.com>
* gst/gst-types.defs: * gst/gst-types.defs:

View file

@ -49,7 +49,7 @@ def require(version):
"pygst.require() must be called before importing gst" "pygst.require() must be called before importing gst"
assert version == _pygst_version, \ assert version == _pygst_version, \
"Only version '%s' is available" % version "Only version '%s' is available" % pygst_version
# move the pygst path to the front # move the pygst path to the front
while _pygst_dir in sys.path: while _pygst_dir in sys.path: