Changeset 93b34cc in sasview


Ignore:
Timestamp:
Nov 28, 2018 10:41:14 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
Children:
1342f6a
Parents:
47be5a1
Message:

add SAS_OPENCL default to the correct path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/_config.py

    r47be5a1 r93b34cc  
    8686def setup_custom_config(app_dir, user_dir): 
    8787    path = make_custom_config_path(user_dir) 
     88    #logger.info("custom config path %s", path) 
    8889    if not os.path.isfile(path): 
    8990        try: 
     
    101102        custom_config.SAS_OPENCL = None 
    102103        try: 
    103             open(config_file, "a+").write("SAS_OPENCL = \"None\"\n") 
     104            open(path, "a+").write("SAS_OPENCL = \"None\"\n") 
    104105        except Exception: 
    105106            logger.error("Could not update custom config with SAS_OPENCL.") 
Note: See TracChangeset for help on using the changeset viewer.