From a2554a586b28e941be05a3609dade823f4589999 Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Mon, 13 Apr 2009 17:08:03 +0530 Subject: Reorganize and modularize Kuttans. Split kuttans_main.py file to kuttans.py and kuttans --- pykuttans/src/kuttans | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 pykuttans/src/kuttans (limited to 'pykuttans/src/kuttans') diff --git a/pykuttans/src/kuttans b/pykuttans/src/kuttans new file mode 100755 index 0000000..48aa5f7 --- /dev/null +++ b/pykuttans/src/kuttans @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# Copyright (c) 2009 Rajeesh K Nambiar +# +# This program is a free software, you can redistribute it +# under the license of GNU General Public License, verstion 3 +# or a later version (at your option) as published by the +# Free Software Foundation + +import sys +from kuttans import KuttansApp +from PyQt4 import QtGui + +if __name__ == "__main__": + app = QtGui.QApplication(sys.argv) + myapp = KuttansApp() + myapp.show() + sys.exit(app.exec_()) -- cgit From 25b05108bc0a8e520d35279cadba6faab4492a68 Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Mon, 13 Apr 2009 17:41:43 +0530 Subject: Kuttans: append sys.path to resolve kuttans module path correctly --- pykuttans/src/kuttans | 1 + 1 file changed, 1 insertion(+) (limited to 'pykuttans/src/kuttans') diff --git a/pykuttans/src/kuttans b/pykuttans/src/kuttans index 48aa5f7..6794cb2 100755 --- a/pykuttans/src/kuttans +++ b/pykuttans/src/kuttans @@ -7,6 +7,7 @@ # Free Software Foundation import sys +sys.path.append(sys.prefix + '/share/kuttans/') from kuttans import KuttansApp from PyQt4 import QtGui -- cgit