Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0b739d2460
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (48 sloc) 1.243 kB
import os
import sys
import gobject
gobject.threads_init()
modules = [
"gnomeapplet",
"gnomeprint",
("ui", "gnomeprint"),
"gtksourceview",
"wnck",
("plparser", "totem"),
"gtop",
"nautilusburn",
"mediaprofiles",
"metacity",
"rsvg",
"gnomekeyring",
"gnomedesktop",
("ebook", "evolution"),
("ecal", "evolution"),
"evince",
"braseromedia",
"braseroburn",
]
def run_import_tests(builddir, no_import_hooks):
if not no_import_hooks:
import ltihooks
ltihooks.install()
for item in modules:
if isinstance(item, tuple):
module, dirname = item
else:
module = item
dirname = item
sys.path.insert(0, os.path.join(builddir, dirname))
print "Trying to import module %s... " % (module,),
try:
mod = __import__(module) # try to import the module to catch undefined symbols
except ImportError, ex:
if ex.args[0].startswith("No module named"):
print "not found"
else:
raise
else:
print "ok."
globals()[module] = mod
if not no_import_hooks:
ltihooks.uninstall()
Jump to Line
Something went wrong with that request. Please try again.