From 4fa585046fca63243e1b735b56d3e5a7e6ab729b Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 12 Mar 2014 00:24:29 +0400 Subject: [PATCH] Fix potential crash on ansi + unicode concatenation --- gui/builtinPreferenceViews/pyfaHTMLExportPreferences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/builtinPreferenceViews/pyfaHTMLExportPreferences.py b/gui/builtinPreferenceViews/pyfaHTMLExportPreferences.py index 8b58f8a35..c51ec2981 100644 --- a/gui/builtinPreferenceViews/pyfaHTMLExportPreferences.py +++ b/gui/builtinPreferenceViews/pyfaHTMLExportPreferences.py @@ -58,7 +58,7 @@ class PFHTMLExportPref ( PreferenceView): def setPathLinkCtrlValues(self, path): self.PathLinkCtrl.SetLabel(self.HTMLExportSettings.getPath()) - self.PathLinkCtrl.SetURL('file:///' + self.HTMLExportSettings.getPath()) + self.PathLinkCtrl.SetURL(u'file:///{}'.format(self.HTMLExportSettings.getPath())) self.PathLinkCtrl.SetSize(wx.DefaultSize); self.PathLinkCtrl.Refresh()