Skip to content

Run python file with relative path #16523

@molly-w

Description

@molly-w

Discussed in https://github.com/microsoft/vscode-python/discussions/16522

Originally posted by molly-w June 21, 2021
Recently I have noticed when I run my python files in integrated terminal I get:

➜ Developer /usr/sbin/python /home/headlineineed/Developer/file.py
This is the file that is running....

In the past I would just see:
python file.py

I know with the extension Code Runner installed and set

    "code-runner.executorMap": {
        "python": "python $fileName",
    },
    "code-runner.runInTerminal": true,

image

How do I get it without installing Code Runner but only Python extension?

Original Post: full python path and .py path when running inside terminal, how do I change it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions