Skip to content

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

@ecstrema

Description

@ecstrema

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"?

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions