From 30e69f8b32fbe90d35bcc73d3cabdac8693b033b Mon Sep 17 00:00:00 2001 From: William Becher Date: Thu, 15 Sep 2022 08:40:27 -0300 Subject: [PATCH] Fix image location on webpage - windows (#568) --- ldm/dream/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldm/dream/server.py b/ldm/dream/server.py index 54118c7dd4..96ffd7f2ef 100644 --- a/ldm/dream/server.py +++ b/ldm/dream/server.py @@ -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: