<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register_schema(self, directory, path):
 """Register a json-schema. :param directory: root directory path. :param path: schema path, relative to the root directory. """

        self.schemas[path] = os.path.abspath(directory)