Skip to content

Commit d296ec5

Browse files
committed
Use full path to stanc
1 parent 41296d1 commit d296ec5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmdstanpy/model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def src_info(self) -> Dict[str, Any]:
275275
return result
276276
try:
277277
cmd = (
278-
[os.path.join('.', 'bin', 'stanc' + EXTENSION)]
278+
[os.path.join(cmdstan_path(), 'bin', 'stanc' + EXTENSION)]
279279
# handle include-paths, allow-undefined etc
280280
+ self._compiler_options.compose_stanc()
281281
+ [
@@ -285,7 +285,6 @@ def src_info(self) -> Dict[str, Any]:
285285
)
286286
out = subprocess.run(
287287
cmd,
288-
cwd=cmdstan_path(),
289288
capture_output=True,
290289
text=True,
291290
check=True,

0 commit comments

Comments
 (0)