~/.config/youtube-dlg should just contain configuration files and not logs (which should go to $XDG_DATA_HOME/youtube-dlg/ ) nor youtube-dl binary (which should go to $XDG_CACHE_HOME).
Please also consider using appdirs instead of hardcoding ~/.config/
~/.config/youtube-dlg should just contain configuration files and not logs (which should go to $XDG_DATA_HOME/youtube-dlg/ ) nor youtube-dl binary (which should go to $XDG_CACHE_HOME).
Please also consider using
appdirs
instead of hardcoding ~/.config/