Source code for discrete_optimization.generic_tools.path_tools
# Copyright (c) 2022 AIRBUS and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
[docs]
def abspath_from_file(file: str, relative_path: str) -> str:
return os.path.join(os.path.dirname(os.path.abspath(file)), relative_path)