Skip to content

Commit

Permalink
Merge pull request #11539 from KratosMultiphysics/core/post_processin…
Browse files Browse the repository at this point in the history
…g/stug_generation

[Core] Fix stub generation for core sub modules
  • Loading branch information
sunethwarna authored Sep 5, 2023
2 parents c3ed8fd + c21d232 commit 5b8bfda
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 5b8bfda

Please sign in to comment.