Answers for "python command used to change a directory to a new path\"

4

change directory in python os

import os

path = "C:UsersYourDirectory"

os.chdir(path)
Posted by: Guest on March-16-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 "python command used to change a directory to a new path\"

Python Answers by Framework

Browse Popular Code Answers by Language