eq-r: Fix use of Executable.__call__() (#13952)
This commit is contained in:
parent
71eaffa46b
commit
543f37ea51
@ -46,7 +46,7 @@ def configure_args(self):
|
|||||||
if not os.path.exists(r_location):
|
if not os.path.exists(r_location):
|
||||||
rscript = which('Rscript')
|
rscript = which('Rscript')
|
||||||
if rscript is not None:
|
if rscript is not None:
|
||||||
r_location = rscript('-e', 'cat(R.home())')
|
r_location = rscript('-e', 'cat(R.home())', output=str)
|
||||||
else:
|
else:
|
||||||
msg = 'couldn\'t locate Rscript on your PATH'
|
msg = 'couldn\'t locate Rscript on your PATH'
|
||||||
raise RuntimeError(msg)
|
raise RuntimeError(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user