Skip to content

[FEATURE] Rename virtual environment upon container creation #34

Closed

Description

@c-vigo

Description

The virtual environment in a fresh devcontainer is named template-project instead of the project name.

Problem Statement

Aesthetics mainly

Proposed Solution

The renaming must happen during first initialization of the container, since the venv is stored in the image. I have been using the following line in post-create.sh:

# Set venv prompt
sed -i 's/template-project/{{SHORT_NAME}}/g' /root/assets/workspace/.venv/bin/activate

Alternatives Considered

No response

Additional Context

No response

Impact

No response

Metadata

Metadata

Assignees

Labels

feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions