mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 22:11:35 +01:00
d048ea5a10
For this add a small batch script in the same directory as the cheat script.
11 lines
292 B
Batchfile
11 lines
292 B
Batchfile
@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=
|