2011-09-23 41 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雞蛋這樣做,但它已被作者不支持幾年現在

相關問題