From e9a06930aa2357476ede245436d476ed6c61ede4 Mon Sep 17 00:00:00 2001 From: Sean/Lychee Date: Fri, 6 Jul 2018 16:41:04 +0800 Subject: [PATCH] added windows commandline support --- bin/j2py.cmd | 7 +++++++ setup.py | 1 + 2 files changed, 8 insertions(+) create mode 100644 bin/j2py.cmd diff --git a/bin/j2py.cmd b/bin/j2py.cmd new file mode 100644 index 0000000..df285cf --- /dev/null +++ b/bin/j2py.cmd @@ -0,0 +1,7 @@ +@IF EXIST "%~dp0\python.exe" ( + "%~dp0\python.exe" "%~dp0\j2py" %* +) ELSE ( + @SETLOCAL + @SET PATHEXT=%PATHEXT:;.PY;=;% + python "%~dp0\j2py" %* +) \ No newline at end of file diff --git a/setup.py b/setup.py index 210d623..5e7397d 100644 --- a/setup.py +++ b/setup.py @@ -75,6 +75,7 @@ def doc_files(): scripts=[ 'bin/j2py', + 'bin/j2py.cmd', ], data_files=[