Skip to content

Commit

Permalink
rename klong_exports to klongpy_exports
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Dec 23, 2023
1 parent 2e0dd6d commit 71b2867
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/python/hello_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ def say_hello(name):
print(f"hello, {name}")


klong_exports = {"hello": say_hello}
klongpy_exports = {"hello": say_hello}

2 changes: 1 addition & 1 deletion examples/stocks/yfinance/lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ def load(filename):
return model


klong_exports = {"load": load, "create": create_model}
klongpy_exports = {"load": load, "create": create_model}
6 changes: 3 additions & 3 deletions klongpy/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion klongpy/sys_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion klongpy/web/__init__.py
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 1 addition & 1 deletion klongpy/ws/__init__.py
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 1 addition & 1 deletion tests/plugins/custom_export/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .exports import command_map

klong_exports = command_map()
klongpy_exports = command_map()

0 comments on commit 71b2867

Please sign in to comment.