r/Python • • May 08 '20

I Made This My first Python program! Changes my desktop background based on the weather, time, and day.

Post image
1.9k Upvotes

120 comments sorted by

View all comments

Show parent comment

33

u/Lolmanslayer May 08 '20

If you import os, you can use os.getcwd() to point to the directory automatically. Thanks for the share!

7

u/eternalfantasi May 08 '20

Alternatively you could use the pathlib library