본문 바로가기

IT-Consultant

Running compiled python (py2exe) as administrator in Windows 7

setup(

windows=[{

              "script" : "office.py",

              "icon_resources": [(0, "tray.ico")],

          'uac_info': "requireAdministrator",              

             }],

zipfile=None,

    data_files = find_data_files('D:\Woffice','',[

        'README',

        '*.ico',

        '*.jpg',        

    ]),

options={

'py2exe' : options, 

}

)