Add warning to build if not using Python 2.

This commit is contained in:
Neil Fraser 2015-03-09 10:01:51 -07:00
parent 7414c59b89
commit a257e143c4

View file

@ -35,7 +35,12 @@
# dart_compressed.js: The compressed Dart generator.
# msg/js/<LANG>.js for every language <LANG> defined in msg/js/<LANG>.json.
import errno, glob, httplib, json, os, re, subprocess, sys, threading, urllib
import sys
if sys.version_info[0] != 2:
raise Exception("Blockly build only compatible with Python 2.x.\n"
"You are using: " + sys.version)
import errno, glob, httplib, json, os, re, subprocess, threading, urllib
def import_path(fullpath):