예제 #1
0
def checkAuxFileExist(aux_file_name):
    """
    Make sure the <aux_file> auxiliary file exists. Return an exception in case of
    an error.
    <aux_file_name> is just the name without the path.
    """
    auxpath = os.path.join('ElementsKernel', 'templates', aux_file_name)
    aux.getAuxiliaryPath(auxpath)
예제 #2
0
def copyAuxFile(destination, aux_file_name):
    """
    Copy the <aux_file_name> file to the <destination> directory.
    <aux_file_name> is just the name without path
    """
    aux_path_file = aux.getAuxiliaryPath(
        os.path.join('ElementsKernel', 'templates', aux_file_name))
    shutil.copy(aux_path_file, os.path.join(destination, aux_file_name))