The following line:
xdg_data_dirs = os.environ.get('XDG_DATA_DIRS', '{0};{1};{2}'.format(app_local_data_path, app_global_data_path, app_roaming_data_path)).split(';')
should be replaced with:
xdg_data_dirs = os.environ.get('XDG_DATA_DIRS', u'{0};{1};{2}'.format(app_local_data_path, app_global_data_path, app_roaming_data_path)).split(';')
The following line:
xdg_data_dirs = os.environ. get('XDG_ DATA_DIRS' ,
'{0};{1} ;{2}'.format( app_local_ data_path,
app_global_ data_path, app_roaming_ data_path) ).split( ';')
should be replaced with:
xdg_data_dirs = os.environ. get('XDG_ DATA_DIRS' ,
u'{0};{ 1};{2}' .format( app_local_ data_path,
app_global_ data_path, app_roaming_ data_path) ).split( ';')