mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
Make __main__ work in all scenarios with relative imports
This commit is contained in:
parent
9e8056d5a7
commit
f1cb5bcad2
3 changed files with 9 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ test:
|
|||
# TODO un-phony README.md and youtube-dl.bash_completion by reading from .in files and generating from them
|
||||
|
||||
youtube-dl: youtube_dl/*.py
|
||||
zip --quiet --junk-paths youtube-dl youtube_dl/*.py
|
||||
zip --quiet youtube-dl __main__.py youtube_dl/*.py
|
||||
echo '#!/usr/bin/env python' > youtube-dl
|
||||
cat youtube-dl.zip >> youtube-dl
|
||||
rm youtube-dl.zip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue