Skip to content

Commit

Permalink
Fix #221: double backslash in path prevents autorestart file being founc
Browse files Browse the repository at this point in the history
  • Loading branch information
rlktradewright committed Jul 4, 2023
1 parent cd0d9cf commit 6554eec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/scripts/StartIBC.bat
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ if not exist "%TWS_SETTINGS_PATH%" (
set ERROR=%E_TWS_SETTINGS_PATH_NOT_EXIST%
goto :err
)
pushd %TWS_SETTINGS_PATH%
:: ensure TWS_SETTINGS_PATH contains no double backslashes: they cause
:: problems when trying to find the autorestart file
set TWS_SETTINGS_PATH=%CD%
popd

if not exist "%IBC_PATH%" (
set ERROR_MESSAGE=IBC path: %IBC-PATH% does not exist
set ERROR=%E_IBC_PATH_NOT_EXIST%
Expand Down

0 comments on commit 6554eec

Please sign in to comment.