blob: 28cbdcadaa782e7d746e43a9a7547b6dbe49ca9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
"""
Initializer for the krosskexiapp-module.
Description:
This module provides the entry-point for python scripts
to work with a running Kexi application instance.
Author:
Sebastian Sauer <mail@dipe.org>
Copyright:
Dual-licensed under LGPL v2+higher and the BSD license.
"""
try:
import krosskexiapp
except ImportError as e:
raise "Import of the Kross KexiApp module failed.\n%s" % e
def get(modulename):
return krosskexiapp.get(modulename)
def currentConnection():
mainwindow = krosskexiapp.get("KexiAppMainWindow")
return mainwindow.getConnection()
|