Skip to content

[question] Avoiding direnv allow for usage in scripting?Β #520

@nottrobin

Description

@nottrobin

I'd like to use direnv from within a Python tool I'm writing. So I want to be able to run something like:

subprocess.check_call(["direnv", "exec", ".", "my-command"])

So that I can allow the user to have made use of a .envrc file. The biggest blocker to this that I'm having is the need for direnv allow ..

Is there any way that direnv can be configured by the user to avoid the need for direnv allow . on each directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions