def openSVGPage(fileName, svgViewer):
 if (svgViewer == ''):
  return
 if (svgViewer == 'webbrowser'):
  openWebPage(fileName)
  return
 filePath = (('"' + os.path.normpath(fileName)) + '"')
 shellCommand = ((svgViewer + ' ') + filePath)
 commandResult = os.system(shellCommand)
 if (commandResult != 0):
  print ('It may be that the system could not find the %s program.' % svgViewer)
  print ('If so, try installing the %s program or look for another svg viewer, like Netscape which can be found at:' % svgViewer)
  print 'http://www.netscape.org/'
  print ''

def openSVGPage ( fileName , svgViewer ) : if ( svgViewer == '' ) : return if ( svgViewer == 'webbrowser' ) : openWebPage ( fileName ) return filePath = ( ( '"' + os . path . normpath ( fileName ) ) + '"' ) shellCommand = ( ( svgViewer + ' ' ) + filePath ) commandResult = os . system ( shellCommand ) if ( commandResult != 0 ) : print ( 'It may be that the system could not find the %s program.' % svgViewer ) print ( 'If so, try installing the %s program or look for another svg viewer, like Netscape which can be found at:' % svgViewer ) print 'http://www.netscape.org/' print ''
open svg page with an svg program .