Skip to content

Commit

Permalink
fix lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Dec 14, 2023
1 parent f03028a commit 62c5ead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/kgpy
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ def cleanup_async_loop(loop: asyncio.AbstractEventLoop, loop_thread, stop_event,


def append_pkg_resource_path_KLONGPATH():
with importlib.resources.as_file(importlib.resources.files('klongpy')) as pkg_lib_path:
with importlib.resources.as_file(importlib.resources.files('klongpy')) as pkg_path:
pkg_lib_path = os.path.join(pkg_path, "lib")
klongpath = os.environ.get("KLONGPATH", ".:lib")
klongpath = f"{klongpath}:{pkg_lib_path}" if klongpath else str(pkg_lib_path)
os.environ["KLONGPATH"] = klongpath
print(f"KLONGPATH: {klongpath}")


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
setup(
name='klongpy',
packages=find_packages(),
version='0.5.11',
version='0.5.12',
description='High-Performance Klong array language with rich Python integration.',
author='Brian Guarraci',
license='MIT',
Expand Down

0 comments on commit 62c5ead

Please sign in to comment.