Skip to content

Commit 5a55044

Browse files
committed
No longer read mplstyle files in CONFIG_DIR
1 parent d88ebc0 commit 5a55044

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

stagpy/args.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@
1111
import matplotlib.style as mpls
1212
from loam.cli import CLIManager, Subcmd
1313

14+
from . import __doc__ as doc_module
1415
from . import (
15-
ISOLATED,
1616
_styles,
1717
commands,
1818
conf,
19-
config,
2019
field,
2120
plates,
2221
refstate,
2322
rprof,
2423
time_series,
2524
)
26-
from . import __doc__ as doc_module
2725
from ._helpers import baredoc
2826
from .config import CONFIG_DIR
2927

@@ -47,11 +45,6 @@ def _load_mplstyle() -> None:
4745
"""Try to load conf.plot.mplstyle matplotlib style."""
4846
for style in conf.plot.mplstyle:
4947
style_fname = style + ".mplstyle"
50-
if not ISOLATED:
51-
stfile = config.CONFIG_DIR / style_fname
52-
if stfile.is_file():
53-
mpls.use(str(stfile))
54-
continue
5548
# try packaged version
5649
if imlr.is_resource(_styles, style_fname):
5750
with imlr.path(_styles, style_fname) as stfile:

0 commit comments

Comments
 (0)