Answers for "how to set path to the root directory in python windows"

2

Python project root dir

import os
ROOT_DIR = os.path.abspath(os.curdir)
Posted by: Guest on April-28-2021
5

how to use path to change working directory in python

pip install path
from path import Path

# set working directory
Path("/toWhereYouWantItToBe").cd()
Posted by: Guest on March-09-2020

Code answers related to "how to set path to the root directory in python windows"

Browse Popular Code Answers by Language