Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for direnv #16

Merged
merged 1 commit into from
Sep 11, 2022
Merged

add support for direnv #16

merged 1 commit into from
Sep 11, 2022

Conversation

caesar
Copy link
Contributor

@caesar caesar commented Sep 10, 2022

Detects virtualenv or direnv and calls the appropriate script before running Stable Diffusion.

Could be extended to support other virtual environments (but I am not familiar enough with other virtual environments to do so).

Please note that I have not tested this with virtualenv, so please test that before merging!
It works well with direnv.

Fixes #15

@breadthe
Copy link
Owner

Love it, thanks a bunch! I tested it and it works with virtualenv.

@breadthe breadthe merged commit e4a0e24 into breadthe:main Sep 11, 2022
@swyxio
Copy link
Contributor

swyxio commented Sep 11, 2022

never heard of direnv… count this as a TIL lol

@caesar caesar deleted the direnv branch September 11, 2022 20:34
@caesar
Copy link
Contributor Author

caesar commented Sep 11, 2022

never heard of direnv… count this as a TIL lol

It's the best way I've found so far to make Python package management vaguely survivable… though I'd certainly be happy to hear of something better 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't work with direnv (only supports virtualenv)
3 participants