Skip to content

Commit a8d80ee

Browse files
author
Christopher Rowley
committed
remove 'if' that is always true
1 parent 80b5c15 commit a8d80ee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pysrc/juliacall/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,8 @@ def args_from_config(config):
210210
if libpath is None:
211211
cmd = [exepath, '--project='+project, '--startup-file=no', '-O0', '--compile=min',
212212
'-e', 'import Libdl; print(abspath(Libdl.dlpath("libjulia")), "\\0", Sys.BINDIR)']
213-
found_libpath, found_bindir = subprocess.run(cmd, check=True, capture_output=True, encoding='utf8').stdout.split('\0')
214-
if libpath is None:
215-
CONFIG['libpath'] = libpath = found_libpath
213+
libpath, found_bindir = subprocess.run(cmd, check=True, capture_output=True, encoding='utf8').stdout.split('\0')
214+
CONFIG['libpath'] = libpath
216215
if bindir is None:
217216
CONFIG['bindir'] = bindir = found_bindir
218217
if bindir is None:

0 commit comments

Comments
 (0)