python change directory relative path code example
Example 1: relative path python
import sys,os
sys.path.append(os.path.realpath('..'))
Example 2: how to use path to change working directory in python
pip install path
from path import Path
# set working directory
Path("/toWhereYouWantItToBe").cd()