Skip to content

Commit

Permalink
Fix bug: lxfmt-mock should export LXALIAS=on in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hsfzxjy committed Feb 10, 2021
1 parent c4f1824 commit d4c585e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambdex/fmt/cli/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d4c585e

Please sign in to comment.