Changeset 531dd64 in sasview for src/sas


Ignore:
Timestamp:
Nov 28, 2018 5:31:02 AM (6 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
3ba060e1
Parents:
9c05f22
Message:

Fix for adding SAS_OPENCL to custom_config (for backcompatibility)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/_config.py

    rf7d14a1 r531dd64  
    9898    if not "SAS_OPENCL" in open(path).read(): 
    9999        try: 
    100             open(config_file, "a+").write("SAS_OPENCL = \"None\"\n") 
     100            open(path, "a+").write("SAS_OPENCL = \"None\"\n") 
    101101        except Exception: 
    102102            logger.error("Could not update custom config with SAS_OPENCL.") 
Note: See TracChangeset for help on using the changeset viewer.