Handling paths in the MAPDL instance #4081
germa89
started this conversation in
Tips and Tricks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From #4079
mapdl.directory
returns aPathlib.PurePath
object.Hence you can do the following in PyMAPDL:
The
Pathlib.PurePath
is aware of the platform MAPDL is running and returns the correspondentPathlib.PurePath
object (PureWindowsPath
on Windows OS andPurePosixPath
on Linux/Unix systems).This is quite convenient for managing files when you are connected to a remote instance.
Beta Was this translation helpful? Give feedback.
All reactions