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

Release History

This version
History Node

0.5.post2

History Node

0.5.post1

History Node

0.5

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
run-exe-0.5.post2.zip (17.3 kB) Copy SHA256 Checksum SHA256 Source Feb 1, 2016

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting