Skip to content

Commit

Permalink
Move docker import so it works without docker installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwillia-work committed Jun 17, 2022
1 parent dedbbd5 commit 2d31956
Showing 1 changed file with 2 additions and 1 deletion.
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

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

0 comments on commit 2d31956

Please sign in to comment.