2004-03-17 12:41:08 +00:00
|
|
|
import dl
|
2004-03-08 19:22:15 +00:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import unittest
|
|
|
|
|
2004-04-16 13:56:39 +00:00
|
|
|
# Don't insert before .
|
|
|
|
sys.path.insert(1, os.path.join('..', 'gst'))
|
2004-03-08 19:22:15 +00:00
|
|
|
|
2004-04-16 13:56:39 +00:00
|
|
|
import ltihooks
|
2004-03-17 12:41:08 +00:00
|
|
|
|
2004-04-16 13:56:39 +00:00
|
|
|
# Load GST and make sure we load it from the current build
|
2004-03-17 12:41:08 +00:00
|
|
|
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
|
|
|
|
2004-04-16 13:56:39 +00:00
|
|
|
path = os.path.abspath(os.path.join('..', 'gst'))
|
|
|
|
import gst
|
|
|
|
assert gst.__path__ != path, 'bad path'
|
2004-03-17 12:41:08 +00:00
|
|
|
|
|
|
|
try:
|
2004-04-16 13:56:39 +00:00
|
|
|
import gst.interfaces
|
|
|
|
assert os.path.basename(gst.interfaces.__file__) != path, 'bad path'
|
2004-03-17 12:41:08 +00:00
|
|
|
except ImportError:
|
2004-04-16 13:56:39 +00:00
|
|
|
pass
|
2004-03-17 12:41:08 +00:00
|
|
|
|
|
|
|
try:
|
2004-04-16 13:56:39 +00:00
|
|
|
import gst.play
|
|
|
|
assert os.path.basename(gst.play.__file__) != path, 'bad path'
|
2004-03-17 12:41:08 +00:00
|
|
|
except ImportError:
|
2004-04-16 13:56:39 +00:00
|
|
|
pass
|
|
|
|
|
2004-03-17 12:41:08 +00:00
|
|
|
|
|
|
|
|