Skip to content

Commit f9a3a14

Browse files
committed
Use pathlib.Path for example binary.
1 parent 25b5798 commit f9a3a14

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmdstanpy/install_cmdstan.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,7 @@ def compile_example(verbose: bool = False) -> None:
349349
350350
:param verbose: Boolean value; when ``True``, show output from make command.
351351
"""
352-
path = Path(
353-
os.path.join('examples', 'bernoulli', 'bernoulli' + EXTENSION)
354-
)
352+
path = Path('examples', 'bernoulli', 'bernoulli').with_suffix(EXTENSION)
355353
if path.is_file():
356354
path.unlink()
357355

0 commit comments

Comments
 (0)