Skip to content

Commit 7fba1a5

Browse files
committed
Fix operator import
Signed-off-by: paul.profizi <[email protected]>
1 parent 4ca42c2 commit 7fba1a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansys/dpf/core/operators/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ def build_operators():
252252
category_operators = os.listdir(os.path.join(this_path, category.split(".")[0]))
253253
with open(os.path.join(this_path, category, "__init__.py"), "wb") as category_init:
254254
for category_operator in category_operators:
255+
operator_name = category_operator.split(".")[0]
255256
category_init.write(
256-
f"from .{category_operator} import {category_operator}\n".encode()
257+
f"from .{operator_name} import {operator_name}\n".encode()
257258
)
258259

259260
if succeeded == len(available_operators) - hidden:

0 commit comments

Comments
 (0)