Running compiled python (py2exe) as administrator in Vista

后端 未结 4 1666
梦谈多话
梦谈多话 2020-11-28 12:27

Is it possible to programaticly run compiled Python (comiled via py2exe) as administrator in Vista?

Some more clarification:
I have written a program that modi

4条回答
  •  时光取名叫无心
    2020-11-28 13:00

    Following up Roger Lipscombe's comment, I've used a manifest file in py2exe without any real knowledge of what I was doing. So this might work:

    # in setup.py
    # manifest copied from http://blogs.msdn.com/shawnfa/archive/2006/04/06/568563.aspx
    manifest = '''
    
           
             
               
                 
               
             
           
         
    '''
    
    setup(name='MyApp',
          #...
          windows=[ { #...
                      'other_resources':[(24, 1, manifest)],
                     }]
         )
    

    You may need to do some fiddling though..

提交回复
热议问题