Update script to use python3 command

This commit is contained in:
kozbial
2021-08-09 14:00:17 -07:00
committed by Monica Kozbial
parent b35b8aa603
commit 2a62c06a92
7 changed files with 8 additions and 8 deletions

View File

@@ -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)"

View File

@@ -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')} \

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# Code shared by translation conversion scripts.
#

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# Generate .js files defining Blockly core and language messages.
#

View File

@@ -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,

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# Gives the translation status of the specified apps and languages.
#

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Tests of i18n scripts.