File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ Please refer to `examples/atom_babies` for the sample.
7373To generate ` atom_babies.m5b ` on the same directory as the JSON file, execute the following:
7474
7575``` bash
76- python -m uiflow-custom-block-generator examples/atom_babies/atom_babies.json
76+ python -m uiflow_custom_block_generator examples/atom_babies/atom_babies.json
7777```
7878
7979You can specify ` --target_dir ` (` -t ` ) option to change the output directory of the M5B file.
8080
8181For example, ` atom_babies.m5b ` is generated on the current directory if you execute the following:
8282
8383``` bash
84- python -m uiflow-custom-block-generator examples/atom_babies/atom_babies.json -t .
84+ python -m uiflow_custom_block_generator examples/atom_babies/atom_babies.json -t .
8585```
8686
8787** Caution** : [ UiFlow Block Maker] ( http://block-maker.m5stack.com/ ) cannot read the M5B file generated from this script.
Original file line number Diff line number Diff line change @@ -73,13 +73,13 @@ pip install git+https://github.com/3110/uiflow-custom-block-generator
7373以下を実行すると,設定用 JSON と同じディレクトリに` atom_babies.m5b ` を生成します。
7474
7575``` bash
76- python -m uiflow-custom-block-generator examples/atom_babies/atom_babies.json
76+ python -m uiflow_custom_block_generator examples/atom_babies/atom_babies.json
7777```
7878
7979` --target_dir ` (` -t ` )オプションで M5B ファイルの出力先ディレクトリを変更できます。以下の例の場合,カレントディレクトリに` atom_babies.m5b ` を生成します。
8080
8181``` bash
82- python -m uiflow-custom-block-generator examples/atom_babies/atom_babies.json -t .
82+ python -m uiflow_custom_block_generator examples/atom_babies/atom_babies.json -t .
8383```
8484
8585注意:このスクリプトで生成された M5B ファイルは [ UiFlow Block Maker] ( http://block-maker.m5stack.com/ ) で正常に読み込めません(長い Python コードが途中で切られてしまう問題があります)。
You can’t perform that action at this time.
0 commit comments