Skip to content

Instantly share code, notes, and snippets.

@mincrmatt12
Last active September 18, 2019 15:44
Show Gist options
  • Save mincrmatt12/be74e14666871d8957aebd632dc97e61 to your computer and use it in GitHub Desktop.
Save mincrmatt12/be74e14666871d8957aebd632dc97e61 to your computer and use it in GitHub Desktop.
"""
fixes idle by creating another shortcut with the name "realidle" that _really works_ 100% money back guaratee
this product is copyright (c) oo matthew under the WTFPL
"""
nongmoscript = r"""@echo off
set HOMEDRIVE=C:
set HOMEPATH=\Users\%USERNAME%
start pythonw -m idlelib.idle
"""
import os
onehundredpercent = os.path.expanduser("~/Desktop/Start Idle.bat")
with open(onehundredpercent, "w") as moneybackguaranteed:
moneybackguaranteed.write(nongmoscript)
os.unlink(__file__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment