gasolin / zhpy

周蟒, 用中文化 python 語法寫程式
https://pypi.python.org/pypi/zhpy
58 stars 12 forks source link

[TODO]提供执行打包工具 #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
当前 zhpy 的标准使用过程是:
1. 写好中文脚本
2. 通过zhpy 生成正常脚本
3. 调用python 环境执行

都是手工执行的,不利于实用脚本的实时调试,
建议给出自动联级执行方式,
e.g:
zhpy -p my.py
就自动完成以上2~3, 实际输出的是
python my_py.py(生成后的脚本名)
的执行

Original issue reported on code.google.com by Zoom.Quiet on 10 Aug 2007 at 2:11

GoogleCodeExporter commented 8 years ago
可以用

1. 写好中文脚本
2. 通过 zhpy 執行

如

{{{
$ zhpy hello.py
}}}

zhpy 會呼叫 exec 動態執行轉換好的 python code

自动联级执行方式不錯, 下一版用 optparse 弄個強一點的 
command line 工具好了

Original comment by gasolin on 10 Aug 2007 at 5:54

GoogleCodeExporter commented 8 years ago
新的 optparse command line 工具。

add "-p": "compile to python and run" option, which generate python source with 
'n_'
prefix. in svn [52]

Original comment by gasolin on 15 Aug 2007 at 4:15