Skip to content

Commit 2cc2c5a

Browse files
committed
Add code to remove the symlink before creating
* It will prompts "Cannot create a file when that file already exists." if the symlink already exist. Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 1fa3699 commit 2cc2c5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ if %ERRORLEVEL% neq 0 (
160160
%CFG_REQUIREMENTS%
161161

162162
@rem # Create junction to bin to have the same directory between linux and windows
163+
if exist "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin" (
164+
rmdir /s /q "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin"
165+
)
163166
mklink /J %CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin %CFG_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts
164167

165168
if %ERRORLEVEL% neq 0 (

0 commit comments

Comments
 (0)