Skip to content

Be able to find chia command without activating the env #80

Open
@altendky

Description

@altendky

I'm not really sure what the priority should be in the case where there's a chia on the $PATH and also in the same env as plotman, but at least in the case where chia is not on the on the $PATH and is available in the env, it seems like it should be used? Or maybe it must be configured? At a high level this relates to being able to run plotman without activating the environment.

sysconfig.get_path() can get us the scripts (bin) path.

$ venv/bin/python -c 'import sysconfig; print(sysconfig.get_path("scripts"))'
/farm/venv/bin

Or, maybe we can get the executable path from psutil when there are existing plots and if they all match then we can presume that's the chia to use?

Here are some issues that are at least in part related to chia-finding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions