FilePath¶
- class audobject.resolver.FilePath[source]¶
File path resolver.
Turns file path to a relative path when object is serialized to a file and expands it again during reading.
Examples
>>> resolver = FilePath() >>> resolver._object_root_ = '/some/root' # usually set by object >>> value = '/some/where/else' >>> encoded_value = resolver.encode(value) >>> encoded_value '../where/else' >>> resolver.decode(encoded_value) '/some/where/else'