Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Run executable file, with option to try as admin on error on Windows.

Project Description

# Overview #

Run executable file, with option to try as admin on error on Windows.

# Usage #

The following example opens a temporary file in the root of C:. This should prompt the user to permit the process to run with elevated privileges.

import sys import tempfile

t = tempfile.mktemp(dir=’C:/’)

run_exe(sys.executable, ‘’’ -c “’‘’
‘’‘import os;’‘’ ‘’‘open(‘%s’, ‘wb’)’‘’ ‘’‘os.remove(%s)”’‘’ % (t, t), try_admin=True)

Release History

This version
History Node

0.5.post2

History Node

0.5.post1

History Node

0.5

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
run-exe-0.5.post2.zip
(17.3 kB) Copy SHA256 Hash SHA256
Source None Feb 1, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting