File size: 542 Bytes
0ec2e87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os

FRAMEWORK_DIR = os.path.abspath(
    os.path.join(os.path.dirname(__file__), os.path.pardir)
)


def sim_framework_path(*args) -> str:
    """

    Abstraction from os.path.join()

    Builds absolute paths from relative path strings with SUREFlow/ as root.

    If args already contains an absolute path, it is used as root for the subsequent joins

    Args:

        *args:



    Returns:

        absolute path



    """
    abs_path = os.path.abspath(os.path.join(FRAMEWORK_DIR, *args))
    return abs_path