#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2010
    Posts
    144
    Rep Power
    4

    Python3, py2exe, uac elevation


    I'm trying to move my python2 code forward to python3.

    One application I have is a "tech tools" control panel written in python and pyqt which, due to its nature, needs to run with uac-elevation. Because it needs to be able to run on any windows PC we have without first installing python, I've "compiled" it to exe using py2exe.

    The actual code works fine in python3. What doesn't work is py2exe.

    I've tried cx_freeze, but unlike py2exe, it doesn't have a configuration option to request UAC elevation for the exe when it's run.

    Am I stuck with python2, or is there a better option?
  2. #2
  3. המבין יבין
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2001
    Location
    Haifa
    Posts
    2,085
    Rep Power
    1485
    I would suggest commenting on the py2exe feature request for adding Python3 support:
    https://sourceforge.net/p/py2exe/feature-requests/20/
    . . . What is Firefox?
    . . . . . . What is Linux?
    . . . . . . . . . . . What is Love?

IMN logo majestic logo threadwatch logo seochat tools logo