We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6531865 commit e6f5e5eCopy full SHA for e6f5e5e
py/visdom/server/app.py
@@ -144,12 +144,13 @@ def load_layouts(self):
144
RuntimeWarning
145
)
146
return ""
147
- layout_filepath = os.path.join(self.env_path, 'view', LAYOUT_FILE)
148
- ensure_dir_exists(layout_filepath)
+ layout_dir = os.path.join(self.env_path, 'view')
+ layout_filepath = os.path.join(layout_dir, LAYOUT_FILE)
149
if os.path.isfile(layout_filepath):
150
with open(layout_filepath, 'r') as fn:
151
return fn.read()
152
else:
153
+ ensure_dir_exists(layout_dir)
154
155
156
def load_state(self):
0 commit comments