File: importTest.py

package info (click to toggle)
pykde4 4%3A4.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 30,864 kB
  • ctags: 18,431
  • sloc: python: 2,063; cpp: 327; makefile: 52; sh: 5
file content (20 lines) | stat: -rw-r--r-- 406 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
print "\nTesting PyKDE module imports\n"
try:
    import PyKDE4.pykdeconfig
except:
    print "Can't find PyKDE4.pykdeconfig.py - please check installation"
    raise    

pykdecfg = PyKDE4.pykdeconfig.Configuration ()

print "Modules built:"
print " ",pykdecfg.pykde_modules
print
print "Importing:"
print

for mod in pykdecfg.pykde_modules.split():
    print mod
    exec ("import PyKDE4." + mod)

print