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.

16 lines
326 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:
  7. import os.path
  8. sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
  9. import youtube_dl
  10. if __name__ == '__main__':
  11. youtube_dl.main()