Skip to content

Commit b89dfef

Browse files
committed
Also fix up folder in in-language version
1 parent 9353793 commit b89dfef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmdstanpy/utils/cmdstan.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,11 @@ def install_cmdstan(
520520
logger.warning('CmdStan installation failed.\n%s', str(e))
521521
return False
522522

523-
set_cmdstan_path(os.path.join(args.dir, f"cmdstan-{args.version}"))
523+
if 'git:' in args.version:
524+
folder = f"cmdstan-{args.version.replace(':', '-').replace('/', '_')}"
525+
else:
526+
folder = f"cmdstan-{args.version}"
527+
set_cmdstan_path(os.path.join(args.dir, folder))
524528

525529
return True
526530

0 commit comments

Comments
 (0)