Skip to content

Commit

Permalink
activate.bat and activate.ps1: fix GDAL_DRIVER_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 19, 2022
1 parent 0841f11 commit a5131dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipe/scripts/activate.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@REM Support plugins if the plugin directory exists
@REM i.e if it has been manually created by the user
@set "GDAL_DRIVER_PATH=%CONDA_PREFIX%\Library\bin\gdalplugins"
@set "GDAL_DRIVER_PATH=%CONDA_PREFIX%\Library\lib\gdalplugins"
@if not exist "%GDAL_DRIVER_PATH%" (
set "GDAL_DRIVER_PATH="
)
2 changes: 1 addition & 1 deletion recipe/scripts/activate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ($ENV:GDAL_DRIVER_PATH) {
$ENV:_CONDA_SET_GDAL_DRIVER_PATH=$ENV:GDAL_DRIVER_PATH
}

$ENV:GDAL_DRIVER_PATH="$ENV:CONDA_PREFIX\Library\bin\gdalplugins"
$ENV:GDAL_DRIVER_PATH="$ENV:CONDA_PREFIX\Library\lib\gdalplugins"
if (-Not (Test-Path $ENV:GDAL_DRIVER_PATH) ) {
Remove-Item ENV:GDAL_DRIVER_PATH
}

0 comments on commit a5131dd

Please sign in to comment.