From 6d6b4dbd85957a997d6799b419cc5a29afb369fd Mon Sep 17 00:00:00 2001
From: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Date: Fri, 5 Jan 2024 20:06:43 +0100
Subject: [PATCH] fix: implement correct path resolution for all OS
solves issues for Windows
---
modules/ui_gradio_extensions.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/ui_gradio_extensions.py b/modules/ui_gradio_extensions.py
index ed32a87a..00214364 100644
--- a/modules/ui_gradio_extensions.py
+++ b/modules/ui_gradio_extensions.py
@@ -30,7 +30,7 @@ def javascript_html():
edit_attention_js_path = webpath('javascript/edit-attention.js')
viewer_js_path = webpath('javascript/viewer.js')
image_viewer_js_path = webpath('javascript/imageviewer.js')
- samples_path = webpath('sdxl_styles/samples/Fooocus V2.jpg')
+ samples_path = webpath(os.path.abspath('./sdxl_styles/samples/Fooocus V2.jpg'))
head = f'\n'
head += f'\n'
head += f'\n'