2011-09-23 42 views
4

看着Running compiled python (py2exe) as administrator in Vista我在想,如果有一个简单的方法来获得在Python(特别py2app)MAC地址认证的对话框后运行编译蟒(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'""") 

,但不知道是否有一个内置的方式做到这一点

回答

0

从我可以告诉有一个Python鸡蛋这样做,但它已被作者不支持几年现在

相关问题