mirror of
https://github.com/cheat/cheat.git
synced 2024-11-25 15:31:36 +01:00
Enable starting the cheat python script on windows.
For this add a small batch script in the same directory as the cheat script.
This commit is contained in:
parent
cdf573a725
commit
d048ea5a10
10
bin/cheat.bat
Normal file
10
bin/cheat.bat
Normal file
@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
|
||||
if not defined EDITOR (set EDITOR=write)
|
||||
|
||||
:: Retrieve the path to python executable.
|
||||
for /f "delims=" %%A in ('where python') do set "PATHOFPYTHON=%%A"
|
||||
%PATHOFPYTHON% %PATHOFPYTHON%\..\Scripts\cheat %*
|
||||
|
||||
:: Remove this variable to avoid polluting the environment.
|
||||
set PATHOFPYTHON=
|
Loading…
Reference in New Issue
Block a user