How to set the current working directory? [duplicate]

How to set the current working directory in Python?

5 s
5

Try os.chdir

os.chdir(path)

        Change the current working directory to path. Availability: Unix, Windows.

Leave a Comment