[python-win32] sudo.py -- publish to pypi or gist?

Vernon D. Cole vernondcole at gmail.com
Fri Feb 16 23:01:37 EST 2018


I finished work on a new module today -- it is called "sudo.py" and does
pretty much what you would expect.

If executed as a main program, on Linux or MacOS, it just runs "sudo" which
is not very exciting. On Windows, it requests elevation and runs a command
as an Administrator, which is a capability I have been wanting for years.

Or you can call it at the beginning of a Python program like this:
>>> import sudo
>>> sudo.run_elevated()  # run this script as an Administrator
which creates a new window (on Windows) and runs the script (from the top)
with elevated privileges.

Of course it requires PyWin32 to perform all this magic on Windows.

I want to publish it -- but in what form?
If you care, please respond to this poll.
<https://www.surveymonkey.com/r/23S85HG>
--
Vernon Cole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180216/bb200873/attachment.html>


More information about the python-win32 mailing list