2010-07-02から1日間の記事一覧

Pythonのコンパイル

仕事中なので休憩時間を利用しメモ書きとして。pythonを.pycに手動でコンパイルする。 python -m compileall <ソースコードのディレクトリ名>あと、コードとして。 import compileall compileall.compile_dir('<ソースコードのディレクトリ名>', force=True)…