Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Get and Change the Current Working Directory in Python

To find the Current working directory in Python, use os.getcwd(), and to change the current working directory, use os.chdir(path).



This post first appeared on Linuxize, please read the originial post: here

Share the post

How to Get and Change the Current Working Directory in Python

×

Subscribe to Linuxize

Get updates delivered right to your inbox!

Thank you for your subscription

×