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 a42c773 commit d61723cCopy full SHA for d61723c
stagpy/args.py
@@ -44,10 +44,10 @@ def _bare_cmd(conf: Config) -> None:
44
def _load_mplstyle(conf: Config) -> None:
45
"""Try to load conf.plot.mplstyle matplotlib style."""
46
for style in conf.plot.mplstyle:
47
- style_fname = style + ".mplstyle"
48
# try packaged version
49
- if imlr.is_resource(_styles, style_fname):
50
- with imlr.path(_styles, style_fname) as stfile:
+ style_file = imlr.files(_styles).joinpath(f"{style}.mplstyle")
+ if style_file.is_file():
+ with imlr.as_file(style_file) as stfile:
51
mpls.use(str(stfile))
52
continue
53
mpls.use(style)
0 commit comments