From c9506f0437cb519f8a53280debf783c44d2037bd Mon Sep 17 00:00:00 2001
From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
Date: Fri, 30 Jan 2026 12:07:19 +0100
Subject: [PATCH 1/7] chore: remove ansys-tools-path
---
src/ansys/tools/installer/constants.py | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/ansys/tools/installer/constants.py b/src/ansys/tools/installer/constants.py
index 771ca401..e9c60792 100644
--- a/src/ansys/tools/installer/constants.py
+++ b/src/ansys/tools/installer/constants.py
@@ -148,13 +148,10 @@
"PyWorkbench": "https://workbench.docs.pyansys.com",
# TOOLS
"Ansys FileTransfer Tool": "https://filetransfer.tools.docs.pyansys.com",
- "Ansys Local Product Launcher": "https://local-product-launcher.tools.docs.pyansys.com",
- "Ansys Tools Path": "https://path.tools.docs.pyansys.com",
+ "Ansys Tools Common": "https://tools.docs.pyansys.com",
"Ansys Tools Protobuf Compilation Helper": "https://ansys.github.io/ansys-tools-protoc-helper",
"Ansys Tools Visualization Interface": "https://visualization-interface.tools.docs.pyansys.com",
- "PyAnsys Tools Report": "https://report.tools.docs.pyansys.com",
"PyAnsys Tools Variable Interop": "https://variableinterop.docs.pyansys.com",
- "PyAnsys Tools Versioning": "https://versioning.tools.docs.pyansys.com",
"PyAnsys Units": "http://units.docs.pyansys.com",
"PyMaterials Manager": "https://manager.materials.docs.pyansys.com",
}
@@ -206,13 +203,10 @@
"Shared Components": "ansys-openapi-common",
# TOOLS
"Ansys FileTransfer Tool": "ansys-tools-filetransfer",
- "Ansys Local Product Launcher": "ansys-tools-local-product-launcher",
- "Ansys Tools Path": "ansys-tools-path",
+ "Ansys Tools Common": "ansys-tools-common",
"Ansys Tools Protobuf Compilation Helper": "ansys-tools-protoc-helper",
"Ansys Tools Visualization Interface": "ansys-tools-visualization-interface",
- "PyAnsys Tools Report": "pyansys-tools-report",
"PyAnsys Tools Variable Interop": "pyansys-tools-variableinterop",
- "PyAnsys Tools Versioning": "pyansys-tools-versioning",
"PyAnsys Units": "ansys-units",
"PyMaterials Manager": "ansys-materials-manager",
}
From 88ead9e75c4b2ace7310cf40b3997c40f2871fea Mon Sep 17 00:00:00 2001
From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
Date: Fri, 30 Jan 2026 12:08:14 +0100
Subject: [PATCH 2/7] Update pyproject.toml
---
pyproject.toml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 3cd7ef12..5add383f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,7 +16,7 @@ dependencies = [
"appdirs",
"requests",
"PySide6",
- "ansys-tools-path",
+ "ansys-tools-common",
"setuptools; python_version >= '3.12'",
]
classifiers = [
@@ -39,7 +39,7 @@ tests = [
"appdirs==1.4.4",
"requests==2.32.5",
"PySide6==6.10.1",
- "ansys-tools-path==0.8.1",
+ "ansys-tools-common==0.4.2",
"pytest==8.3.5",
"pytest-cov==7.0.0",
"pytest-qt==4.5.0",
@@ -59,7 +59,7 @@ freeze = [
"appdirs==1.4.4",
"requests==2.32.5",
"PySide6==6.10.1",
- "ansys-tools-path==0.8.1",
+ "ansys-tools-common==0.4.2",
]
[tool.flit.module]
From 414657a3fec26f4b923f5df64b5fe3a43ddcaea7 Mon Sep 17 00:00:00 2001
From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
Date: Fri, 30 Jan 2026 12:08:41 +0100
Subject: [PATCH 3/7] Update frozen.spec
---
frozen.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frozen.spec b/frozen.spec
index d0313e35..5d375510 100644
--- a/frozen.spec
+++ b/frozen.spec
@@ -35,7 +35,7 @@ added_files = [
]
# Missing metadata
-added_files += copy_metadata('ansys-tools-path')
+added_files += copy_metadata('ansys-tools-common')
if is_linux() and os.getenv("ADD_PYTHON_BINARIES","true") == "true":
added_files +=[(os.path.join(ASSETS_PATH, 'python-asset'), 'assets')]
From 58a28f1cc18c3100f5785d841c8b1bd349c02074 Mon Sep 17 00:00:00 2001
From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
Date: Fri, 30 Jan 2026 12:10:55 +0100
Subject: [PATCH 4/7] Update frozen.spec
---
frozen.spec | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/frozen.spec b/frozen.spec
index 5d375510..ff661da0 100644
--- a/frozen.spec
+++ b/frozen.spec
@@ -4,7 +4,6 @@ import os
import sys
from PyInstaller.utils.hooks import collect_all, collect_submodules, copy_metadata
-from ansys.tools.path.misc import is_linux
block_cipher = None
@@ -15,7 +14,7 @@ except NameError:
THIS_PATH = os.getcwd()
OUT_PATH = 'ansys_python_manager'
-APP_NAME = 'ansys_python_manager' if is_linux() else 'Ansys Python Manager'
+APP_NAME = 'ansys_python_manager' if os.name == "posix" else 'Ansys Python Manager'
INSTALLER_PATH = os.path.join(THIS_PATH, 'src/ansys/tools/installer')
ASSETS_PATH = os.path.join(INSTALLER_PATH, 'assets')
@@ -37,10 +36,10 @@ added_files = [
# Missing metadata
added_files += copy_metadata('ansys-tools-common')
-if is_linux() and os.getenv("ADD_PYTHON_BINARIES","true") == "true":
+if os.name == "posix" and os.getenv("ADD_PYTHON_BINARIES","true") == "true":
added_files +=[(os.path.join(ASSETS_PATH, 'python-asset'), 'assets')]
-if is_linux():
+if os.name == "posix":
added_files +=[(os.path.join(ASSETS_PATH, 'scripts'), 'assets')]
a = Analysis([main_py],
From b85312574d1cb9c628832a0dce684a1c05de60af Mon Sep 17 00:00:00 2001
From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
Date: Fri, 30 Jan 2026 12:11:14 +0100
Subject: [PATCH 5/7] Update find_python.py
---
src/ansys/tools/installer/find_python.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ansys/tools/installer/find_python.py b/src/ansys/tools/installer/find_python.py
index 6f862c63..92572c03 100644
--- a/src/ansys/tools/installer/find_python.py
+++ b/src/ansys/tools/installer/find_python.py
@@ -26,7 +26,7 @@
import os
import subprocess
-from ansys.tools.path import get_available_ansys_installations
+from ansys.tools.common.path import get_available_ansys_installations
from ansys.tools.installer.configure_json import ConfigureJson
from ansys.tools.installer.constants import ANSYS_SUPPORTED_PYTHON_VERSIONS
From e24ea211197b0a13fa9dfe08fc1d8e22854a4174 Mon Sep 17 00:00:00 2001
From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
Date: Fri, 30 Jan 2026 12:12:03 +0100
Subject: [PATCH 6/7] Update linux_functions.py
---
src/ansys/tools/installer/linux_functions.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/ansys/tools/installer/linux_functions.py b/src/ansys/tools/installer/linux_functions.py
index cc1b9a49..67eed68b 100644
--- a/src/ansys/tools/installer/linux_functions.py
+++ b/src/ansys/tools/installer/linux_functions.py
@@ -29,7 +29,6 @@
import shutil
import subprocess
-from ansys.tools.path.misc import is_linux
from github import Github
from packaging import version
@@ -60,12 +59,7 @@ def is_linux_os():
>>> is_linux_os
True
"""
- try:
- if is_linux():
- return is_linux()
- return False
- except:
- return False
+ return os.name == "posix"
def get_vanilla_url_and_filename(selected_version):
From 762f1b6b5888da37b275be585a5ed6e01fa869a4 Mon Sep 17 00:00:00 2001
From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
Date: Fri, 30 Jan 2026 12:12:47 +0100
Subject: [PATCH 7/7] Update constants.py
---
src/ansys/tools/installer/constants.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/ansys/tools/installer/constants.py b/src/ansys/tools/installer/constants.py
index e9c60792..0b893408 100644
--- a/src/ansys/tools/installer/constants.py
+++ b/src/ansys/tools/installer/constants.py
@@ -26,8 +26,6 @@
import os
import sys
-from ansys.tools.path.misc import is_linux
-
from ansys.tools.installer import __version__
LOG = logging.getLogger(__name__)
@@ -78,13 +76,13 @@
NAME_FOR_VENV = f"""Provide the name for your virtual environment.
-
Virtual environments are created under user directory /{ANSYS_LINUX_PATH + "/" + ANSYS_VENVS if is_linux() else ANSYS_VENVS} by default. To configure the default path, go to File >> Configure (Ctrl + D) and provide your preferred path.
+
Virtual environments are created under user directory /{ANSYS_LINUX_PATH + "/" + ANSYS_VENVS if os.name == "posix" else ANSYS_VENVS} by default. To configure the default path, go to File >> Configure (Ctrl + D) and provide your preferred path.
If the name provided already exists for another virtual environment, it will not be created. Users will receive a warning informing of the situation. For more details, refer here."""
SELECT_VENV_MANAGE_TAB = f"""Choose a virtual environment to manage.
-It is recommended to use virtual environments for package management and launching options. Environments which are available under the user directory /{ANSYS_LINUX_PATH + "/" + ANSYS_VENVS if is_linux() else ANSYS_VENVS} are listed by default. To configure this default directory, refer here."""
+It is recommended to use virtual environments for package management and launching options. Environments which are available under the user directory /{ANSYS_LINUX_PATH + "/" + ANSYS_VENVS if os.name == "posix" else ANSYS_VENVS} are listed by default. To configure this default directory, refer here."""
if getattr(sys, "frozen", False):
# If the application is run as a bundle, the PyInstaller bootloader