mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: implement correct path resolution for all OS
solves issues for Windows
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user