# HG changeset patch # User windel # Date 1349623629 -7200 # Node ID bcd55a3415120e4a82a06c296bda6ae360c4dd51 # Parent 361f7d13adea91b78818f341d36e68779eef0c29 Added py3k check diff -r 361f7d13adea -r bcd55a341512 python/apps/ide.py --- a/python/apps/ide.py Sun Oct 07 17:21:08 2012 +0200 +++ b/python/apps/ide.py Sun Oct 07 17:27:09 2012 +0200 @@ -1,11 +1,14 @@ import sys, os -sys.path.insert(0, os.path.join('..','libs')) +if sys.version_info.major != 3: + print("Needs to be run in python version 3.x") + sys.exit(1) from PyQt4.QtCore import * from PyQt4.QtGui import * import base64 # Compiler imports: +sys.path.insert(0, os.path.join('..','libs')) from project import Project from compiler import Compiler from widgets import CodeEdit, AstViewer