From bc0492ef77aef8ced32ffac5aeb9ebca29923958 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Wed, 29 Apr 2009 12:14:00 +0000 Subject: [PATCH] moved the initialization of psyco after the initialization git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@140 014f5005-505e-4b48-8d0a-63407b615a7c --- CHANGELOG | 3 ++- relational_gui.py | 13 +++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 777dfdf..3640ec9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -70,4 +70,5 @@ - Document about complexity of operations - Bug: error in update operation, it changed the original tuple, so also other relations using the same tuple would change. Now it copies it. - Added make install and uninstall -- Optimizer generate a tree from the expression \ No newline at end of file +- Optimizer generate a tree from the expression +- Uses python-psyco when it is available \ No newline at end of file diff --git a/relational_gui.py b/relational_gui.py index 922dd63..4b2f483 100755 --- a/relational_gui.py +++ b/relational_gui.py @@ -19,12 +19,6 @@ # # author Salvo "LtWorf" Tomaselli -try: - import psyco - psyco.full() -except: - pass - import sys from PyQt4 import QtCore, QtGui from relational_gui import maingui, about @@ -37,6 +31,13 @@ if __name__ == "__main__": if len (sys.argv) > 1 and sys.argv[1] == "-v": print version sys.exit(0) + + try: + import psyco + psyco.full() + except: + pass + app = QtGui.QApplication(sys.argv) Form = QtGui.QWidget()