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.
パイロンで現在のWindowsユーザーを取得することは可能ですか?
制御されたWindowsドメイン内から使用されるpylonsアプリを起動しています。
ログオンしたユーザーを取得することは可能ですか?
ASP.NETでPage.User.Identity.Nameを使用して行うのと同じように。
これは、標準のgetpassモジュールを使用して実行できます。
import getpass getpass.getuser()