mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix image location on webpage - windows (#568)
This commit is contained in:
parent
df4d1162b5
commit
30e69f8b32
@ -107,7 +107,7 @@ class DreamServer(BaseHTTPRequestHandler):
|
||||
out_dir = os.path.realpath(self.outdir.rstrip('/'))
|
||||
if self.path.startswith('/static/dream_web/'):
|
||||
path = '.' + self.path
|
||||
elif out_dir.endswith(path_dir):
|
||||
elif out_dir.replace('\\', '/').endswith(path_dir):
|
||||
file = os.path.basename(self.path)
|
||||
path = os.path.join(self.outdir,file)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user