fix: implement correct path resolution for all OS

solves issues for Windows
This commit is contained in:
Manuel Schmid 2024-01-05 20:06:43 +01:00 committed by GitHub
parent a196a648ff
commit 6d6b4dbd85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'<script type="text/javascript">{localization_js(args_manager.args.language)}</script>\n'
head += f'<script type="text/javascript" src="{script_js_path}"></script>\n'
head += f'<script type="text/javascript" src="{context_menus_js_path}"></script>\n'