epath#

[[Source]]

from etils import epath

Public API.

All symbols#

Module#

epath

Public API.

epath.testing

Test utils for epath.

Class#

epath.Path

Abstract base class for pathlib.Path-like API.

Function#

epath.DEFINE_path

Defines a flag containing a epath.Path value.

epath.register_path_cls

Register the pathlib-like class.

epath.resource_path

Returns read-only root directory path of the module.

epath.testing.mock_epath

Mock epath.

epath.to_write_path

Cast the epath.resource_path to a read-write Path.

Attribute#

epath.PathLikeCls

Typing#

epath.PathLike

TODO(py310): os.PathLike is not suscrible