summaryrefslogtreecommitdiffstats
path: root/python/pykde/importTest.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pykde/importTest.py')
-rw-r--r--python/pykde/importTest.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/python/pykde/importTest.py b/python/pykde/importTest.py
new file mode 100644
index 00000000..9f457719
--- /dev/null
+++ b/python/pykde/importTest.py
@@ -0,0 +1,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