Changeset e979ad4 in sasview for src


Ignore:
Timestamp:
May 14, 2018 5:05:15 AM (7 years ago)
Author:
wojciech
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
fac42cf
Parents:
8faef63
Message:

Clean-up and modality change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasview/sasview.py

    r8faef63 re979ad4  
    175175        try: 
    176176            subprocess.check_output(["cc","--version"], stderr=subprocess.STDOUT) 
     177        except subprocess.CalledProcessError as exc: 
    177178            dlg = GenericMessageBox(parent=None, 
    178179            text='No compiler installed. Please follow instruction for\n' 
     
    181182                 'which can be setup from menu Fitting->OpenCL Options\n\n', 
    182183            title = 'Compiler Info') 
    183             dlg.Show(1) 
    184  
    185         except subprocess.CalledProcessError as exc: 
    186  
    187             dlg = GenericMessageBox(parent=None, 
    188             text='No compiler installed. Please follow instruction for\n' 
    189                 'command line developers tools installation and restart SasView\n\n' 
    190                 'Alternatively one can use OpenCL compiler,\n' 
    191                  'which can be setup from menu Fitting->OpenCL Options\n\n', 
    192             title = 'Compiler Info') 
    193             dlg.ShowModal() 
    194  
     184            dlg.Show() 
    195185            logger.error("No compiler installed. %s\n"%(exc)) 
    196186            logger.error(traceback.format_exc()) 
Note: See TracChangeset for help on using the changeset viewer.