Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
e4cf2e4f
Unverified
Commit
e4cf2e4f
authored
Mar 30, 2021
by
Nikita Titov
Committed by
GitHub
Mar 30, 2021
Browse files
[ci] use f-strings in libpath.py (#4137)
parent
337103d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python-package/lightgbm/libpath.py
python-package/lightgbm/libpath.py
+2
-1
No files found.
python-package/lightgbm/libpath.py
View file @
e4cf2e4f
...
@@ -34,5 +34,6 @@ def find_lib_path() -> List[str]:
...
@@ -34,5 +34,6 @@ def find_lib_path() -> List[str]:
lib_path
=
[
p
for
p
in
dll_path
if
os
.
path
.
exists
(
p
)
and
os
.
path
.
isfile
(
p
)]
lib_path
=
[
p
for
p
in
dll_path
if
os
.
path
.
exists
(
p
)
and
os
.
path
.
isfile
(
p
)]
if
not
lib_path
:
if
not
lib_path
:
dll_path
=
[
os
.
path
.
realpath
(
p
)
for
p
in
dll_path
]
dll_path
=
[
os
.
path
.
realpath
(
p
)
for
p
in
dll_path
]
raise
Exception
(
'Cannot find lightgbm library file in following paths:
\n
'
+
'
\n
'
.
join
(
dll_path
))
new_line
=
"
\n
"
raise
Exception
(
f
'Cannot find lightgbm library file in following paths:
{
new_line
}{
new_line
.
join
(
dll_path
)
}
'
)
return
lib_path
return
lib_path
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment