Commit bda5b1fa authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

encoding is available in python >= 3.6

parent 801f3b4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)