Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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 Release notifications

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 Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page