Skip to content

Commit c893ff2

Browse files
authored
Improved to match codestyle
Making Ruff happy
1 parent 66cc83c commit c893ff2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/juliapkg/find_julia.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,13 @@ def ju_find_julia_noinstall(compat=None):
194194
if compat is None or ver in compat:
195195
if "Path" in info:
196196
ext = ".exe" if os.name == "nt" else ""
197-
if "BinaryPath" in info and info["BinaryPath"].endswith("julia" + ext):
198-
exe = os.path.abspath(os.path.join(judir, info["BinaryPath"] + ext))
197+
if ("BinaryPath" in info and
198+
info["BinaryPath"].endswith("julia" + ext)):
199+
exe = os.path.abspath(
200+
os.path.join(judir, info["BinaryPath"] + ext))
199201
else:
200-
exe = os.path.abspath(os.path.join(judir, info["Path"], "bin", "julia" + ext))
202+
exe = os.path.abspath(
203+
os.path.join(judir, info["Path"], "bin", "julia" + ext))
201204
versions.append((exe, ver))
202205
versions.sort(key=lambda x: x[1], reverse=True)
203206
for exe, _ in versions:

0 commit comments

Comments
 (0)