Fix a minor python2/python3 compatibility issue on MSW

This commit is contained in:
jean-pierre charras 2021-03-03 18:42:38 +01:00
parent fcb9af2b12
commit 49ce32b403
1 changed files with 14 additions and 2 deletions

View File

@ -76,12 +76,24 @@ FULL_BACK_TRACE=""
def GetUnLoadableWizards():
global NOT_LOADED_WIZARDS
import sys
if sys.version_info[0] < 3:
utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
else:
utf8_str = NOT_LOADED_WIZARDS
return utf8_str
def GetWizardsSearchPaths():
global PLUGIN_DIRECTORIES_SEARCH
import sys
if sys.version_info[0] < 3:
utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
else:
utf8_str = PLUGIN_DIRECTORIES_SEARCH
return utf8_str
def GetWizardsBackTrace():