Skip to content
Snippets Groups Projects
Commit a416e1b4 authored by andreas's avatar andreas
Browse files

workaround in init_context_menu for OSX system call bug

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2585 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 06e01bba
No related branches found
No related tags found
No related merge requests found
......@@ -125,10 +125,17 @@ class AlignmentContextMenu(QtCore.QObject):
def __init__(self, context_menu):
try:
if platform.system() == "Windows":
settings.Locate("tmalign.exe")
else:
settings.Locate("tmalign")
try: # workaround for interrupted system call bug on OSX
if platform.system() == "Windows":
settings_name="tmalign.exe"
else:
settings_name="tmalign"
except IOError:
# if platform.system() fails with an IOError we are most likely on a buggy mac an therefore
# use "tmalign"
settings_name="tmalign"
settings.Locate(settings_name)
QtCore.QObject.__init__(self, context_menu.qobject)
self.action = QtGui.QAction("Align", self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment