Changeset c9bf97b in sasview for src/sas


Ignore:
Timestamp:
May 1, 2018 8:51:46 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:
f387050
Parents:
d2647feb
Message:

Fixed error handling

File:
1 edited

Legend:

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

    rd2647feb rc9bf97b  
    204204    import subprocess 
    205205    logger = logging.getLogger(__name__) 
    206     #if sys.platform == "darwin" and not\ 
    207206    try: 
    208207        # need shell=True on windows to keep console box from popping up 
    209208        shell = (os.name == 'nt') 
    210         subprocess.check_output("cc", shell=shell, stderr=subprocess.STDOUT) 
     209        subprocess.check_output("ccs", shell=shell, stderr=subprocess.STDOUT) 
     210    except OSError: 
     211        print("No compiler installed. Please follow installation instructions\n") 
    211212    except subprocess.CalledProcessError: 
    212         raise RuntimeError("No compiler installed. Please follow installation instructions\n") 
    213213        logger.error("No compiler installed. Please follow installation instructions\n") 
    214214        logger.error(traceback.format_exc()) 
Note: See TracChangeset for help on using the changeset viewer.