Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion codegen/tuigen.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
convert_path_to_grpc_path,
convert_tui_menu_to_func_name,
)
import docker

_THIS_DIRNAME = os.path.dirname(__file__)
_MESHING_TUI_FILE = os.path.normpath(
Expand Down Expand Up @@ -98,6 +97,8 @@

def _copy_tui_help_xml_file():
if os.getenv("PYFLUENT_LAUNCH_CONTAINER") == "1":
import docker
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe the style check wants an empty line after the import

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmph forgot to install pre-commit in my venv... yup.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that's a common annoyance


client = docker.from_env()
container = client.containers.create(_FLUENT_IMAGE_NAME)
xml_source = f"/ansys_inc/v{FLUENT_VERSION.replace('.', '')}/commonfiles/help/en-us/fluent_gui_help/fluent_gui_help.xml"
Expand Down