summaryrefslogtreecommitdiffstats
path: root/importTest.py
blob: 39a812744c2af62bbafaab28731fe4aacefbcefa (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", "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()