Commit bda5b1fa authored by Rashad Kanavath's avatar Rashad Kanavath

encoding is available in python >= 3.6

parent 801f3b4e
......@@ -130,7 +130,7 @@ class OtbUtils:
kw = {}
kw['env'] = otb_env
if os.name == 'nt':
if os.name == 'nt' and sys.version_info >= (3, 6):
kw['encoding'] = "cp{}".format(OtbUtils.getWindowsCodePage())
QgsMessageLog.logMessage("{}".format(kw), OtbUtils.tr('Processing'), Qgis.Info)
......
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