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.

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