Commit a8783660 authored by Rashad Kanavath's avatar Rashad Kanavath

normalize path of otb _cli_ script

parent c193bec7
......@@ -266,7 +266,11 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
env_profile = os.path.join(folder, 'otbenv.bat')
if os.path.exists(env_profile) and os.path.isfile(env_profile):
OTBUtils.OTB_CLI_FILE = os.path.join(QgsApplication.qgisSettingsDirPath(), 'processing', 'qgis_otb_cli' + cli_ext)
OTBUtils.OTB_CLI_FILE = os.path.normpath(
os.path.join(
QgsApplication.qgisSettingsDirPath(),
'processing', 'qgis_otb_cli' + cli_ext)
)
#if not os.path.exists(OTBUtils.OTB_CLI_FILE):
#rewrite always for now..
self.write_otbcli_wrapper_script()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment