mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
Update script to use python3 command
This commit is contained in:
@@ -33,7 +33,7 @@ See the current project: `gcloud config get-value project`
|
||||
|
||||
Start a venv: `python3 -m venv venv && source venv/bin/activate`
|
||||
Inside your vm run `pip install google-cloud-ndb`
|
||||
Run the script: `python add_timestamps.py`
|
||||
Run the script: `python3 add_timestamps.py`
|
||||
"""
|
||||
|
||||
__author__ = "fenichel@google.com (Rachel Fenichel)"
|
||||
|
||||
@@ -416,7 +416,7 @@ goog.require('Blockly.requires');
|
||||
*/
|
||||
function generateLangfiles(done) {
|
||||
// Run js_to_json.py
|
||||
const jsToJsonCmd = `python scripts/i18n/js_to_json.py \
|
||||
const jsToJsonCmd = `python3 scripts/i18n/js_to_json.py \
|
||||
--input_file ${path.join('msg', 'messages.js')} \
|
||||
--output_dir ${path.join('msg', 'json')} \
|
||||
--quiet`;
|
||||
@@ -454,7 +454,7 @@ function buildLangfiles(done) {
|
||||
json_files = json_files.filter(file => file.endsWith('json') &&
|
||||
!(new RegExp(/(keys|synonyms|qqq|constants)\.json$/).test(file)));
|
||||
json_files = json_files.map(file => path.join('msg', 'json', file));
|
||||
const createMessagesCmd = `python ./scripts/i18n/create_messages.py \
|
||||
const createMessagesCmd = `python3 ./scripts/i18n/create_messages.py \
|
||||
--source_lang_file ${path.join('msg', 'json', 'en.json')} \
|
||||
--source_synonym_file ${path.join('msg', 'json', 'synonyms.json')} \
|
||||
--source_constants_file ${path.join('msg', 'json', 'constants.json')} \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
# Code shared by translation conversion scripts.
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
# Generate .js files defining Blockly core and language messages.
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
# Consolidates duplicate key-value pairs in a JSON file.
|
||||
# If the same key is used with different values, no warning is given,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
# Gives the translation status of the specified apps and languages.
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Tests of i18n scripts.
|
||||
|
||||
Reference in New Issue
Block a user