File: importTest.py

package info (click to toggle)
python-kde3 3.15.2%2B20060422-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 14,620 kB
  • ctags: 7,123
  • sloc: python: 5,100; cpp: 4,676; ansic: 629; makefile: 116
file content (22 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (4)
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 pykdeconfig
except:
    print "Can't find pykdeconfig.py - please check installation"
    raise    

pykdecfg = pykdeconfig.Configuration ()

#modules = ["dcop", "kdecore", "kdesu", "kdefx", "kdeui", "kio", "kfile", "kparts", "khtml", "kjs", "kspell", "kdeprint"]
print "Modules built:"
print " ",pykdecfg.pykde_modules
print
print "Importing:"
print

for mod in pykdecfg.pykde_modules.split():
    print mod
    if mod != "kdesu":
        exec ("import " + mod)

print