Skip to content

Commit

Permalink
fix stub generation for core sub modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sunethwarna authored Sep 5, 2023
1 parent c3ed8fd commit c21d232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/post_install/stub_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def PostProcessGeneratedStubFiles():
data = file_input.read()

data = re.sub(R"import +Kratos(\w+)\n", R"import KratosMultiphysics.\1 as Kratos\1\n", data)
data = re.sub(R"import +Kratos.(\w+)\n", R"import KratosMultiphysics.\1\n", data)
data = data.replace("import Kratos\n", "import KratosMultiphysics as Kratos\n")

with open(str(file.absolute()), "w") as file_output:
Expand Down

0 comments on commit c21d232

Please sign in to comment.