absolute path and relative path in python code example
Example 1: relative path python
import sys,os
sys.path.append(os.path.realpath('..'))
Example 2: absolute path pathlib python
from patlib import Path
relative = Path("my_path")
absolute = relative.asolute()