mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Add warning to build if not using Python 2.
This commit is contained in:
parent
7414c59b89
commit
a257e143c4
1 changed files with 6 additions and 1 deletions
7
build.py
7
build.py
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue