aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_extra_networks.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-02-05 14:02:30 +0000
committerGitHub <noreply@github.com>2023-02-05 14:02:30 +0000
commit47b298d58af290c5c6be6d0716e0216d6e4649d1 (patch)
treec7d059a650ea1d424d0224eac089e1396bdb7b50 /modules/ui_extra_networks.py
parentdd20fc0fda5ac7cbb93af0b93222ee5a17f7705e (diff)
parentea9bd9fc7409109adcd61b897abc2c8881161256 (diff)
downloadstable-diffusion-webui-gfx803-47b298d58af290c5c6be6d0716e0216d6e4649d1.tar.gz
stable-diffusion-webui-gfx803-47b298d58af290c5c6be6d0716e0216d6e4649d1.tar.bz2
stable-diffusion-webui-gfx803-47b298d58af290c5c6be6d0716e0216d6e4649d1.zip
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'modules/ui_extra_networks.py')
-rw-r--r--modules/ui_extra_networks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py
index 95b30f4a..90abec0a 100644
--- a/modules/ui_extra_networks.py
+++ b/modules/ui_extra_networks.py
@@ -26,7 +26,7 @@ def add_pages_to_demo(app):
def fetch_file(filename: str = ""):
from starlette.responses import FileResponse
- if not any([Path(x).resolve() in Path(filename).resolve().parents for x in allowed_dirs]):
+ if not any([Path(x).absolute() in Path(filename).absolute().parents for x in allowed_dirs]):
raise ValueError(f"File cannot be fetched: {filename}. Must be in one of directories registered by extra pages.")
ext = os.path.splitext(filename)[1].lower()