def gain_path(name):
    root = os.path.join(paths.meta_root, 'spectrometers')
    if (not os.path.isdir(root)):
        os.mkdir(root)
    p = os.path.join(root, add_extension('{}.gain'.format(name), '.json'))
    return p
def gain_path(name):
    root = os.path.join(paths.meta_root, 'spectrometers')
    if (not os.path.isdir(root)):
        os.mkdir(root)
    p = os.path.join(root, add_extension('{}.gain'.format(name), '.json'))
    return p