Source code for ElementsKernel.Auxiliary
#
# Copyright (C) 2012-2020 Euclid Science Ground Segment
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 3.0 of the License, or (at your option)
# any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
'''
:date: Created on Feb 10 2017
:author: Hubert Degaudenzi
'''
import shutil
import os
from ElementsKernel.Path import getLocations, getPath, getTargetPath
[docs]def getAuxiliaryLocations(exist_only=False):
"""
Get all the auxiliary locations -- including the default ones
"""
return getLocations("auxiliary", exist_only)
[docs]def getAuxiliaryPath(file_name, raise_exception=True):
"""
Get full path to the file name searched in the auxiliary path
"""
return getPath(file_name, "auxiliary", raise_exception)