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.
内で実行するときにファイルにリダイレクトstderrしたいと思います。スクリプトが で実行されているか で実行されているかを確認するにはどうすればよいですか?stdoutpythonwpythonwpython
stderr
stdout
pythonw
python
sys.executable-- 「これが意味のあるシステムで、Python インタープリターの実行可能バイナリーの名前を与える文字列。」
sys.executable