cx_freeze创建请求管理员权限的exe

时间:2014-11-12 19:52:20

标签: python exe cx-freeze

我正在使用cx_freeze 4.3.3 for python 3.3。它创建一个exe文件,但突然之间,创建的文件要求管理员权限。这从未发生过。 我需要它来创建不请求管理员权限的exe文件。 它有这样做的原因吗?或者有没有办法设置它,以便文件不会请求管理员权限?

这是setup.py代码:

import sys

from cx_Freeze import setup, Executable



base = None
if sys.platform == "win32":
    base = "Win32GUI"

setup(
    name = "QueueUpdate",
    version = "1.6",
    description = "Tracker for CRAP. Internally, our hamsters work very\
    hard to keep track of your time. Be grateful and find a way to feed them.",
    executables = [Executable("queueupdate2.py", base = base)]
)

谢谢

0 个答案:

没有答案
相关问题