Mercurial > lcfOS
changeset 66:bcd55a341512
Added py3k check
author | windel |
---|---|
date | Sun, 07 Oct 2012 17:27:09 +0200 |
parents | 361f7d13adea |
children | 99bf4f7d47f4 |
files | python/apps/ide.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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