Skip to content

Instantly share code, notes, and snippets.

View LeonT-A's full-sized avatar
📚

LeonT-A

📚
View GitHub Profile
@LeonT-A
LeonT-A / GitBash-Wrapper.pyw
Last active August 1, 2020 05:14
Git-Bash Wrapper
# SCRIPT [FILE|FOLDER]
"""
Python3.6+ (Or compile to stand-alone exe using 'auto-py-to-exe')
save as 'filename.pyw' and place in the same folder as git-bash.exe
The HOME folder you specify below will be used by Git-Bash and opened by default.
You can also pass a directory to have it opened (Good for things like Rainmeter launchers) or pass a filename and its directory will be opened (Good for the 'Send to' part of the context menu)
"""
from pathlib import Path
import logging as log