Skip to content

Instantly share code, notes, and snippets.

View heatherannelynn's full-sized avatar

Heather Lynn heatherannelynn

View GitHub Profile
@heatherannelynn
heatherannelynn / exe2bat.py
Created August 17, 2021 20:57 — forked from rafguns/exe2bat.py
Fix Python-based commands/scripts for Python 2.7 on Windows 7 (x64)
"""
Fix Python-based commands/scripts for Python 2.7 on Windows 7 (x64)
Due to Windows 7 UAC requirements Python-based commands (such as easy_install,
ipython, nosetests, pip...) open a new terminal window, making it hard to read
the output.
As documented elsewhere [1]_, the most practical solution is apparently replacing
the executables with a batch file that calls the Python script. This is tedious to
do by hand if you have many packages that install new commands.