Skip to content

Commit fef7680

Browse files
committed
improve
1 parent 46ad751 commit fef7680

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

doc/sphinxext/gen_cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Authors: The MNE-BIDS developers
88
# SPDX-License-Identifier: BSD-3-Clause
99

10-
import glob
1110
import shutil
1211
import sys
1312
from pathlib import Path
@@ -61,9 +60,7 @@ def generate_cli_rst(app=None):
6160
out_fname = out_dir / "cli.rst.new"
6261

6362
cli_path = Path(__file__).resolve().parent.parent.parent / "mne_bids" / "commands"
64-
fnames = sorted(
65-
[Path(fname).name for fname in glob.glob(str(cli_path / "mne_bids*.py"))]
66-
)
63+
fnames = sorted([fname.name for fname in cli_path.glob("mne_bids*.py")])
6764
iterator = sphinx.util.display.status_iterator(
6865
fnames, "generating MNE-BIDS cli help ... ", length=len(fnames)
6966
)

0 commit comments

Comments
 (0)