Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Mar 5, 2024
1 parent 4ea372d commit 0527b05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py-polars/polars/_utils/udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,12 +978,12 @@ def warn_on_inefficient_map(
)


def get_dynamic_lib_location(package_init_path: str | Path) -> str:
def get_dynamic_lib_location(plugin_location: str | Path) -> str:
"""Get location of dynamic library file."""
if Path(package_init_path).is_file():
package_dir = Path(package_init_path).parent
if Path(plugin_location).is_file():
package_dir = Path(plugin_location).parent
else:
package_dir = Path(package_init_path)
package_dir = Path(plugin_location)
for path in package_dir.iterdir():
if _is_shared_lib(path):
return str(path)
Expand Down

0 comments on commit 0527b05

Please sign in to comment.