You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytde/importTest.py

23 lines
537 B

print "\nTesting PyKDE module imports\n"
try:
import pytdeconfig
except:
print "Can't find pytdeconfig.py - please check installation"
raise
pytdecfg = pytdeconfig.Configuration ()
#modules = ["dcop", "tdecore", "tdesu", "tdefx", "tdeui", "tdeio", "tdefile", "tdeparts", "tdehtml", "kjs", "tdespell", "tdeprint"]
print "Modules built:"
print " ",pytdecfg.pytde_modules
print
print "Importing:"
print
for mod in pytdecfg.pytde_modules.split():
print mod
if mod != "tdesu":
exec ("import " + mod)
print