Skip to content

Maybe hard coding the python version in the operator is not the best idea #4511

Description

@simar0at

In a recent fix for #4500 you changed the operator genereated script from using hard coded paths with python3.11 to python3.12.
Is it really necessary to hard code any python version in that script?

I suggest something like this:

PGADMIN_DIR=$(python3 -c "import pgadmin4; print(pgadmin4.__spec__.submodule_search_locations[0])")

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