mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-11 21:49:18 -04:00
parent
064c4fb117
commit
7268046f17
1 changed files with 2 additions and 0 deletions
2
build.py
2
build.py
|
@ -229,6 +229,8 @@ class Gen_compressed(threading.Thread):
|
|||
# Add Blockly.Blocks to be compatible with the compiler.
|
||||
params.append(("js_code", "goog.provide('Blockly.Blocks');"))
|
||||
filenames = glob.glob(os.path.join("blocks", "*.js"))
|
||||
# Add Blockly.Colours for use of centralized colour bank
|
||||
filenames.append(os.path.join("core", "colours.js"))
|
||||
for filename in filenames:
|
||||
f = open(filename)
|
||||
params.append(("js_code", "".join(f.readlines())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue