Help Center/ Huawei HiLens/ Developer Guide/ Resource Management Module/ Obtaining the Directories of the Skill Workspaces
Updated on 2022-02-22 GMT+08:00

Obtaining the Directories of the Skill Workspaces

This API is used to obtain the path of the directory where the skill workspace is located. The path ends with a slash (/). You are not advised to write data in the skill installation directory. Therefore, you need to specify the writable workspace for each skill. If the HiLens Framework does not obtain the workspace location, the current path is returned.

  • API calling

    hilens.get_workspace_path()

  • Return value

    A character string is returned. The absolute path of the working directory is /.../data/. If the operation fails, an empty character string is returned.