From d4c585ee7f4c436f37af978515a70db0ee0ea53f Mon Sep 17 00:00:00 2001 From: hsfzxjy Date: Wed, 10 Feb 2021 10:52:20 +0800 Subject: [PATCH] Fix bug: lxfmt-mock should export LXALIAS=on in Windows --- lambdex/fmt/cli/mock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lambdex/fmt/cli/mock.py b/lambdex/fmt/cli/mock.py index f05635f..9af3fec 100644 --- a/lambdex/fmt/cli/mock.py +++ b/lambdex/fmt/cli/mock.py @@ -15,9 +15,9 @@ SCRIPT_TEMPLATE = ''' @echo off REM {comment} - setlocal - set PYTHONPATH={lambdex_root};%PYTHONPATH% && {py_interpreter} -m lambdex.fmt %* -- -b {formatter_type} -e {formatter_path} - endlocal + set PYTHONPATH={lambdex_root};%PYTHONPATH% + set LXALIAS=on + {py_interpreter} -m lambdex.fmt %* -- -b {formatter_type} -e {formatter_path} @echo on ''' else: