From 4e301724d72c134a526db8352f7e0a22ce969364 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Thu, 4 Feb 2010 17:43:24 +0000 Subject: [PATCH] ENH: Temporary win64 fix from dialog of save project --- invesalius/gui/dialogs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index c70edf2..ec10e7d 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -144,8 +144,11 @@ def ShowOpenProjectDialog(): # Show the dialog and retrieve the user response. If it is the OK response, # process the data. filepath = None - if dlg.ShowModal() == wx.ID_OK: - # This returns a Python list of files that were selected. + try: + if dlg.ShowModal() == wx.ID_OK: + # This returns a Python list of files that were selected. + filepath = dlg.GetPath() + except(wx._core.PyAssertionError): #FIX: win64 filepath = dlg.GetPath() # Destroy the dialog. Don't do this until you are done with it! -- libgit2 0.21.2