You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
424 B

  1. #!/usr/bin/env python
  2. # Execute with
  3. # $ python youtube_dl/__main__.py (2.6+)
  4. # $ python -m youtube_dl (2.7+)
  5. import sys
  6. if __package__ is None and not hasattr(sys, "frozen"):
  7. # direct call of __main__.py
  8. import os.path
  9. path = os.path.realpath(os.path.abspath(__file__))
  10. sys.path.append(os.path.dirname(os.path.dirname(path)))
  11. import youtube_dl
  12. if __name__ == '__main__':
  13. youtube_dl.main()