From ca0890ac9c3ec640f00a677252f8342fe4caba5a Mon Sep 17 00:00:00 2001 From: Camille Latapie <78221213+clatapie@users.noreply.github.com> Date: Tue, 20 May 2025 20:53:36 +0200 Subject: [PATCH 1/2] fix: MapdlRuntimeError message in ``cwd`` This follows @germa89's comment on https://github.com/ansys/pymapdl/pull/3895/files/d7e2653d9a2adac4b05bc528d2495f6920c8e752#r2075315154 --- src/ansys/mapdl/core/_commands/session/run_controls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/mapdl/core/_commands/session/run_controls.py b/src/ansys/mapdl/core/_commands/session/run_controls.py index 757e2b87078..0c23e188861 100644 --- a/src/ansys/mapdl/core/_commands/session/run_controls.py +++ b/src/ansys/mapdl/core/_commands/session/run_controls.py @@ -167,7 +167,7 @@ def cwd(self, dirpath="", **kwargs): dirpath = str(dirpath) if not (dirpath.startswith("'") and dirpath.endswith("'")) and "'" in dirpath: raise MapdlRuntimeError( - 'The CWD command does not accept paths that contain singular quotes "' + 'The CWD command does not accept paths that contain singular quotes "\'".' ) return self.run(f"/CWD,'{dirpath}'", **kwargs) From b53767aed969bf26037b2a610fea1cf2787c7104 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 20 May 2025 18:55:48 +0000 Subject: [PATCH 2/2] chore: adding changelog file 3938.fixed.md [dependabot-skip] --- doc/changelog.d/3938.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3938.fixed.md diff --git a/doc/changelog.d/3938.fixed.md b/doc/changelog.d/3938.fixed.md new file mode 100644 index 00000000000..0a218ce4ef6 --- /dev/null +++ b/doc/changelog.d/3938.fixed.md @@ -0,0 +1 @@ +fix: MapdlRuntimeError message in ``cwd`` \ No newline at end of file