Skip to content

How to use path to change working directory in Python?

pip install path
from path import Path

# set working directory
Path("/toWhereYouWantItToBe").cd()
See also  Remove negative numbers from list in Python

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.