diff --git a/examples/python/hello_exports.py b/examples/python/hello_exports.py index 26f9278..b43f388 100644 --- a/examples/python/hello_exports.py +++ b/examples/python/hello_exports.py @@ -3,5 +3,5 @@ def say_hello(name): print(f"hello, {name}") -klong_exports = {"hello": say_hello} +klongpy_exports = {"hello": say_hello} diff --git a/examples/stocks/yfinance/lstm.py b/examples/stocks/yfinance/lstm.py index d9245b7..21f3cd7 100644 --- a/examples/stocks/yfinance/lstm.py +++ b/examples/stocks/yfinance/lstm.py @@ -47,4 +47,4 @@ def load(filename): return model -klong_exports = {"load": load, "create": create_model} +klongpy_exports = {"load": load, "create": create_model} diff --git a/klongpy/db/__init__.py b/klongpy/db/__init__.py index b998f03..1d1ff84 100644 --- a/klongpy/db/__init__.py +++ b/klongpy/db/__init__.py @@ -4,6 +4,6 @@ db_exports = create_system_functions_db() kvs_exports = create_system_functions_kvs() -klong_exports = {} -klong_exports.update(db_exports) -klong_exports.update(kvs_exports) +klongpy_exports = {} +klongpy_exports.update(db_exports) +klongpy_exports.update(kvs_exports) diff --git a/klongpy/sys_fn.py b/klongpy/sys_fn.py index 5f69ab7..d974a95 100644 --- a/klongpy/sys_fn.py +++ b/klongpy/sys_fn.py @@ -400,7 +400,7 @@ def _import_module(klong, x, from_set=None): else: module = import_module_from_sys(x) - export_items = module.__dict__.get("klong_exports") or module.__dict__ + export_items = module.__dict__.get("klongpy_exports") or module.__dict__ ffn = lambda p: p[0] in from_set if from_set is not None else lambda p: not p[0].startswith("__") ctx = klong._context.pop() diff --git a/klongpy/web/__init__.py b/klongpy/web/__init__.py index 561312e..7c73d08 100644 --- a/klongpy/web/__init__.py +++ b/klongpy/web/__init__.py @@ -1,3 +1,3 @@ from .sys_fn_web import create_system_functions_web -klong_exports = create_system_functions_web() +klongpy_exports = create_system_functions_web() diff --git a/klongpy/ws/__init__.py b/klongpy/ws/__init__.py index 00c0190..123ff71 100644 --- a/klongpy/ws/__init__.py +++ b/klongpy/ws/__init__.py @@ -1,3 +1,3 @@ from .sys_fn_ws import create_system_functions_websockets -klong_exports = create_system_functions_websockets() +klongpy_exports = create_system_functions_websockets() diff --git a/tests/plugins/custom_export/__init__.py b/tests/plugins/custom_export/__init__.py index aebece2..6730ebe 100644 --- a/tests/plugins/custom_export/__init__.py +++ b/tests/plugins/custom_export/__init__.py @@ -1,4 +1,4 @@ from .exports import command_map -klong_exports = command_map() +klongpy_exports = command_map()