Skip to content
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

Add support for running datasette as a module #556

Merged
merged 1 commit into from Jul 11, 2019
Merged

Add support for running datasette as a module #556

merged 1 commit into from Jul 11, 2019

Conversation

abdusco
Copy link
Contributor

@abdusco abdusco commented Jul 9, 2019

This PR allows running datasette using python -m datasette command in addition to just running the executable.

This function is quite useful when debugging a plugin in a project because IDEs like PyCharm can easily start a debug session when datasette is run as a module in contrast to trying to attach a debugger to a running process.

image

@simonw
Copy link
Owner

simonw commented Jul 11, 2019

This is a really neat trick, thanks!

@simonw simonw merged commit 9ca860e into simonw:master Jul 11, 2019
1 check passed
simonw pushed a commit that referenced this pull request Nov 11, 2019
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.

None yet

2 participants