Skip to content

Commit

Permalink
Fix path handling on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed May 19, 2023
1 parent 3ec45bb commit af86b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lumen/command/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, *args, **kwargs):
if 'filename' not in kwargs:
raise ValueError('Must pass a filename to YamlHandler')
filename = os.path.abspath(kwargs['filename'])
kwargs['source'] = f"from lumen import Dashboard; Dashboard('{filename}', load_global=False).servable();"
kwargs['source'] = f"from lumen import Dashboard; Dashboard(r'{filename}', load_global=False).servable();"
super().__init__(*args, **kwargs)

if filename not in config.yamls:
Expand Down

0 comments on commit af86b04

Please sign in to comment.