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 "run current file as module" in addition to "run current file" #23874

Closed
ecstrema opened this issue Jul 26, 2024 · 1 comment
Closed

Add "run current file as module" in addition to "run current file" #23874

ecstrema opened this issue Jul 26, 2024 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team

Comments

@ecstrema
Copy link

Because of how strict the import system is, it is sometimes required to execute a file as a module (with the -m command line option)

However, since you need a module name and not a full path afterwards, you need to convert from

+python path/to/file.py
-python -m path.to.file

Could we have that command along with "run current file in integrated terminal"?

@ecstrema ecstrema added the feature-request Request for new features or functionality label Jul 26, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 26, 2024
@eleanorjboyd
Copy link
Member

Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue. PRs are welcome so you can create a PR that fixes this if you are passionate about getting this feature across the finish line. Thanks!

@eleanorjboyd eleanorjboyd closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

4 participants