Skip to content

Commit 2f8e4c0

Browse files
committed
Allow using the deprecated entry point
1 parent 07ef370 commit 2f8e4c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansys/tools/common/launcher/_plugins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from .interface import FALLBACK_LAUNCH_MODE_NAME, DataclassProtocol, LauncherProtocol
3232

3333
LAUNCHER_ENTRY_POINT = "ansys.tools.common.launcher"
34+
DEPRECATED_LAUNCHER_ENTRY_POINT = "ansys.tools.local_product_launcher.launcher"
3435

3536

3637
def get_launcher(*, product_name: str, launch_mode: str) -> type[LauncherProtocol[DataclassProtocol]]:
@@ -110,6 +111,6 @@ def get_fallback_launcher(product_name: str) -> type[LauncherProtocol[DataclassP
110111
def _get_entry_points() -> tuple[importlib.metadata.EntryPoint, ...]:
111112
"""Get all Local Product Launcher plugin entrypoints for launchers."""
112113
try:
113-
return entry_points(group=LAUNCHER_ENTRY_POINT) # type: ignore
114+
return entry_points(group=LAUNCHER_ENTRY_POINT) + entry_points(group=DEPRECATED_LAUNCHER_ENTRY_POINT) # type: ignore
114115
except KeyError:
115116
return tuple()

0 commit comments

Comments
 (0)