Skip to content

support python -m invocation style #3174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2020

Conversation

PleasantMachine9
Copy link
Contributor

It seems that python -m streamlink -h raises an error, at least on Windows:

# after python -mpip install streamlink
python -m streamlink -h
No module named streamlink.__main__; 'streamlink' is a package and cannot be directly executed

This can be fixed by adding the __main__.py files to both streamlink_cli and streamlink packages with the appropriate content.

It seems that `python -mstreamlink` raises an error,
at least on Windows:

  No module named streamlink.__main__;
  'streamlink' is a package and cannot be directly execute

This can be fixed by adding the __main__.py files to
both `streamlink_cli` and `streamlink`.
@codecov
Copy link

codecov bot commented Sep 14, 2020

Codecov Report

Merging #3174 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3174      +/-   ##
==========================================
- Coverage   52.67%   52.66%   -0.01%     
==========================================
  Files         244      244              
  Lines       15636    15636              
==========================================
- Hits         8236     8235       -1     
- Misses       7400     7401       +1     

@PleasantMachine9
Copy link
Contributor Author

@gravyboat is there someone I message for review? The contributing document is not really clear about what to do with a submitted pull request to get a review.

@gravyboat
Copy link
Member

@PleasantMachine9 No you don't need to do anything. When someone has time they'll review it. Looks good to me but I'm not willing to merge without one of the other maintainers weighing in.

@gravyboat
Copy link
Member

No one else has weighed in and this looks good to me so I'm merging it. Thanks.

@gravyboat gravyboat merged commit 3a57a3a into streamlink:master Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants