Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コマンドラインからpy2exeを呼び出さずにpy2exeでpythonスクリプトをコンパイルすることは可能ですか?
>Python setup.py py2exe
スクリプトからすべて実行したいのですが、実行する方法が見つかりません。
setup.pyの最初に
import sys if len(sys.argv) == 1: sys.argv.append("py2exe")
このように、setup.pyが引数なしで、またはダブルクリックで呼び出された場合、パッケージ化が開始されます