+ 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 (◠‿◕)
1 Resposta
+ 2
You can use a relative path:
https://www.geeksforgeeks.org/JUMP_LINK__&&__python__&&__JUMP_LINK-os-path-relpath-method/