ProjectRelativePath#

class ansys.optislang.core.io.ProjectRelativePath(tail: str | Path, file_path: str | Path | None = None, project_dir_path: str | Path | None = None)#

Provides for operating on optislang project relative paths.

Methods

ProjectRelativePath.convert_to_absolute_path()

Convert to AbsolutePath object.

ProjectRelativePath.from_dict(path)

Create an instance of the OptislangPath class from optiSLang output.

ProjectRelativePath.from_file_and_project_dir_paths(...)

Create an ProjectRelativePath instance.

ProjectRelativePath.to_dict()

Convert to dictionary.

Attributes

ProjectRelativePath.file_path

Path to the file.

ProjectRelativePath.project_dir_path

Path to the project directory.

ProjectRelativePath.tail

Path to the file tail.

ProjectRelativePath.type

Type of the path.