+ remove platform check

This commit is contained in:
wmayer 2015-03-30 16:36:40 +02:00
parent 30098b62e3
commit 90b5d64831

View File

@ -546,23 +546,21 @@ class _JobControlTaskPanel:
def editCalculixInputFile(self):
filename = self.Basename + '.inp'
print 'editCalculixInputFile {}'.format(filename)
from platform import system
if system() == 'Linux':
import FemGui
FemGui.openEditor(filename)
else:
#import webbrowser
# If inp-file extension is assigned the os will use the appropriate binary
# (normaly an Editor) to open the file. Works perfectly on Windows if SciTE is installed.
# However using webbrower.open is not portable and not supported
# https://docs.python.org/3.4/library/webbrowser.html
# FIXME That code should be removed as soon as there is "Preferred editor" option
# added to Preferences, to allow existing SciTE users override built-in editor
#webbrowser.open(filename)
# The Abaqus synax highlighter works similarly to that one of SciTE so that our
# own editor can be used now
import FemGui
FemGui.openEditor(filename)
# FIXME: That code should be removed as soon as there is "Preferred editor" option
# added to Preferences, to allow existing SciTE users override built-in editor
#
#import webbrowser
# If inp-file extension is assigned the os will use the appropriate binary
# (normally an Editor) to open the file. Works perfectly on Windows if SciTE is installed.
# However using webbrower.open is not portable and not supported
# https://docs.python.org/3.4/library/webbrowser.html
#webbrowser.open(filename)
# The Abaqus syntax highlighter works similarly to that one of SciTE so that our
# own editor can be used now
import FemGui
FemGui.openEditor(filename)
def runCalculix(self):
print 'runCalculix'