cwd#
- RunControls.cwd(dirpath='', **kwargs)#
Changes the current working directory.
Mechanical APDL Command: /CWD
- Parameters:
- dirpath
str
The full path name of the new working directory.
- dirpath
Notes
After issuing the /CWD command, all new files opened with no default directory specified (via the file, copy, or resume commands, for example) default to the new
DIRPATH
directory.Examples
Change MAPDL’s working directory to
"C:/temp"
. This assumes that MAPDL running on Windows.>>> mapdl.cwd("C:/temp")
MAPDL on Linux example:
>>> mapdl.cwd("/tmp/")