summaryrefslogtreecommitdiffstats
path: root/importTest.py
blob: 1a3633814c5f0644474b0096393dc1bec97d9cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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", "kio", "kfile", "kparts", "khtml", "kjs", "kspell", "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