From ed4a62b006eb5425f24fc453e2e56a957ad603a5 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Mon, 24 Oct 2016 06:05:10 -0700 Subject: [PATCH] Update usage comment about gen_zip_code_seed.py With f130f2493d3abda10348f99828b77ce186d71458, it's now more obvious that we have to specify PYTHONPATH when calling our python script directly. BUG=#391 TEST= REF_BUG=32281113 REF_CL=137020326 REF_TIME=2016-10-24T06:05:10-07:00 REF_TIME_RAW=1477314310 -0700 --- src/data/dictionary_oss/README.txt | 5 +++-- src/data/version/mozc_version_template.bzl | 2 +- src/dictionary/gen_zip_code_seed.py | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/data/dictionary_oss/README.txt b/src/data/dictionary_oss/README.txt index 43b41798c..3e6b1d878 100644 --- a/src/data/dictionary_oss/README.txt +++ b/src/data/dictionary_oss/README.txt @@ -21,8 +21,9 @@ You can add zip code dictionary by follows: 1. Download zip code data from http://www.post.japanpost.jp/zipcode/download.html 2. Extract them 3. Update zip_code_seed.tsv by - ../../dictionary/gen_zip_code_seed.py \ - --zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt + PYTHONPATH="${PYTHONPATH}:../../" \ + python ../../dictionary/gen_zip_code_seed.py \ + --zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt ------------------------------------------------------------------------------- diff --git a/src/data/version/mozc_version_template.bzl b/src/data/version/mozc_version_template.bzl index f217d7f97..245ffa034 100644 --- a/src/data/version/mozc_version_template.bzl +++ b/src/data/version/mozc_version_template.bzl @@ -30,7 +30,7 @@ MAJOR=2 MINOR=19 -BUILD=2650 +BUILD=2651 REVISION=102 # This version represents the version of Mozc IME engine (converter, predictor, # etc.). This version info is included both in the Mozc server and in the Mozc diff --git a/src/dictionary/gen_zip_code_seed.py b/src/dictionary/gen_zip_code_seed.py index 667cffb86..75fb97a16 100644 --- a/src/dictionary/gen_zip_code_seed.py +++ b/src/dictionary/gen_zip_code_seed.py @@ -35,8 +35,10 @@ Output lines will be printed as utf-8. usage: - ./gen_zip_code_seed.py --zip_code=zip_code.csv --jigyosyo=jigyosyo.csv - > zip_code_seed.tsv + PYTHONPATH="${PYTHONPATH}:" \ + python ./gen_zip_code_seed.py \ + --zip_code=zip_code.csv --jigyosyo=jigyosyo.csv \ + > zip_code_seed.tsv Zip code sample input line: 01101,"060 ","0600007","ホッカイドウ",