Unverified Commit e4cf2e4f authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] use f-strings in libpath.py (#4137)

parent 337103d3
...@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment