Skip to content

Allow for using python -m pyjs_code_runner.cli #10

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Apr 21, 2023

This should allow for invoking the tool with python -m pyjs_code_runner.cli`, which is also common for running Python applications.

@jtpio
Copy link
Member Author

jtpio commented Apr 21, 2023

Will probably be better to get #8 in first before undrafting.

Copy link
Collaborator

@DerThorsten DerThorsten Apr 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtpio
this wont work as we do this in the main.py:

from .run import *  # noqa: F401, F403
from .version import *  # noqa: F401, F403

https://github.com/emscripten-forge/pyjs-code-runner/blob/main/pyjs_code_runner/cli/main.py#L1-L3

This imports / registers the commands to the cli, ie if we take the app directly from app.py we are not registering any command)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants