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 <tiposchi@tiscali.it> -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()