mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-06 05:30:25 +00:00
Created Developing extensions (markdown)
10
Developing-extensions.md
Normal file
10
Developing-extensions.md
Normal file
@@ -0,0 +1,10 @@
|
||||
An extension is just a subdirectory in the `extensions` directory.
|
||||
|
||||
Web ui interacts with installed extensions in the following way:
|
||||
|
||||
- extension's scripts in the `scripts` directory are executed as if they were just usual user scripts, except:
|
||||
- `sys.path` is extended to include the extension directory, so you can import anything in it without worrying
|
||||
- you can use `scripts.basedir()` to get the current extension's directory (since user can name it anything he wants)
|
||||
- extension's javascript files in the `javascript` directory are added to the page
|
||||
- extension's `style.css` file is added to the page
|
||||
|
||||
Reference in New Issue
Block a user