在查看了在 Vista 中以管理员身份运行编译的 python (py2exe)之后,我想知道是否有一种简单的方法可以在 Python (特别是 py2app) 中获取 Mac 身份验证对话框
我知道 mac 也有内置的身份验证服务http://developer.apple.com/library/mac/#documentation/Security/Reference/authorization_ref/Reference/reference.html
另外,我知道我可以做这样的事情:
os.system("""osascript -e 'do shell script "<commands here>" with administrator privileges'""")
但想知道是否有内置的方法可以做到这一点