+ 2

How to specify a directory/folder without writing whole path in python?

I have made a program for downloading youtube videos using the pytube module, and I want to save the download video in the Downloads folder. Ofcourse, I can just manually write the whole path to the Downloads folder, but is there an easy way to just specify the folder name and not the whole path? Thanks in advance (◠‿◕)

2nd Sep 2021, 5:32 PM
Pramod Pandey
Pramod Pandey - avatar
1 Odpowiedź
2nd Sep 2021, 5:55 PM
Simon Sauter
Simon Sauter - avatar