Changeset e65c3ba in sasmodels for sasmodels/core.py


Ignore:
Timestamp:
Nov 28, 2017 4:09:34 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
32398dc
Parents:
110f69c
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    r9e771a3 re65c3ba  
    1010 
    1111import os 
     12from os.path import basename, join as joinpath 
     13from glob import glob 
    1214import re 
    13 from os.path import basename, dirname, join as joinpath 
    14 from glob import glob 
    1515 
    1616import numpy as np # type: ignore 
     
    3535CUSTOM_MODEL_PATH = os.environ.get('SAS_MODELPATH', "") 
    3636if CUSTOM_MODEL_PATH == "": 
    37     path = joinpath(os.path.expanduser("~"), ".sasmodels", "custom_models") 
    38     if not os.path.isdir(path): 
    39         os.makedirs(path) 
    40     CUSTOM_MODEL_PATH = path 
     37    CUSTOM_MODEL_PATH = joinpath(os.path.expanduser("~"), ".sasmodels", "custom_models") 
     38    if not os.path.isdir(CUSTOM_MODEL_PATH): 
     39        os.makedirs(CUSTOM_MODEL_PATH) 
    4140 
    4241try: 
Note: See TracChangeset for help on using the changeset viewer.