Skip to content

Commit

Permalink
{Packaging/windows pip} Use local python for az.bat (#12323)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft committed Mar 2, 2020
1 parent 03a8234 commit 1bc0fd0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/azure-cli/az.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
@echo off
setlocal

SET PYTHONPATH=%~dp0/src;%PYTHONPATH%
python -m azure.cli %*
SET PYTHONPATH=%~dp0\src;%PYTHONPATH%

IF EXIST "%~dp0\python.exe" (
"%~dp0\python.exe" -m azure.cli %*
) ELSE (
python -m azure.cli %*
)

0 comments on commit 1bc0fd0

Please sign in to comment.