examples/Makefile.am (examples_DATA): Dist fixer.

Original commit message from CVS:
2005-09-01  Andy Wingo  <wingo@pobox.com>

* examples/Makefile.am (examples_DATA): Dist fixer.

* examples/debugslider.py: Renamed from debug-slider.py so it can
be imported.

* examples/pipeline-tester: Add a debugslider.

* pygst.py.in (require): If pygst.require() is called multiple
times, don't pollute sys.path with unneeded path entries.
This commit is contained in:
Andy Wingo 2005-09-01 14:39:51 +00:00
parent 7c9e84bc0f
commit 1bbb59401a
5 changed files with 22 additions and 2 deletions

View file

@ -1,3 +1,15 @@
2005-09-01 Andy Wingo <wingo@pobox.com>
* examples/Makefile.am (examples_DATA): Dist fixer.
* examples/debugslider.py: Renamed from debug-slider.py so it can
be imported.
* examples/pipeline-tester: Add a debugslider.
* pygst.py.in (require): If pygst.require() is called multiple
times, don't pollute sys.path with unneeded path entries.
2005-08-31 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/__init__.py:

View file

@ -2,7 +2,7 @@ examplesdir = $(pkgdatadir)/examples
examples_DATA = \
bps.py \
cp.py \
debug-slider.py \
debugslider.py \
f2f.py \
filesrc.py \
gst123 \

View file

@ -35,6 +35,9 @@ import pygst
pygst.require('0.9')
import gst
print sys.path
import debugslider
data = (('Video capture via V4L',
'v4lsrc name=source \n'
@ -147,6 +150,9 @@ class Window(gtk.Window):
tv.set_headers_visible(False)
tv.show()
sw.add(tv)
ds = debugslider.DebugSlider()
ds.show()
b.pack_start(ds, False, False, 0)
l = gtk.Label()
l.set_selectable(True)
l.show()

View file

@ -51,7 +51,9 @@ def require(version):
assert version == _pygst_version, \
"Only version '%s' is available" % version
# prepend the pygst path ...
# move the pygst path to the front
while _pygst_dir in sys.path:
sys.path.remove(_pygst_dir)
sys.path.insert(0, _pygst_dir)
_pygst_required_version = version