• Max Audron's avatar
    use python importlib to load and execute extension modules · 14c0884f
    Max Audron authored
    previously module attributes like __file__ where not set correctly,
    leading to scripts getting the directory of the stable-diffusion repo
    location instead of their own script.
    
    This causes problem when loading user data from an external location
    using the --data-dir flag, as extensions would look for their own code
    in the stable-diffusion repo location instead of the data dir location.
    
    Using pythons importlib functions sets the modules specs correctly and
    executes them. But this will break extensions if they build paths based
    on the previously incorrect __file__ attribute.
    14c0884f
Name
Last commit
Last update
.github Loading commit data...
configs Loading commit data...
embeddings Loading commit data...
extensions Loading commit data...
extensions-builtin Loading commit data...
html Loading commit data...
javascript Loading commit data...
localizations Loading commit data...
models Loading commit data...
modules Loading commit data...
scripts Loading commit data...
test Loading commit data...
textual_inversion_templates Loading commit data...
.gitignore Loading commit data...
.pylintrc Loading commit data...
CODEOWNERS Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
environment-wsl2.yaml Loading commit data...
launch.py Loading commit data...
requirements.txt Loading commit data...
requirements_versions.txt Loading commit data...
screenshot.png Loading commit data...
script.js Loading commit data...
style.css Loading commit data...
webui-macos-env.sh Loading commit data...
webui-user.bat Loading commit data...
webui-user.sh Loading commit data...
webui.bat Loading commit data...
webui.py Loading commit data...
webui.sh Loading commit data...