<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def relpath(self):
 """Relative path."""

        try:
            return os.path.relpath(self.path)
        except OSError:
            # current working directory may not be defined!
            return self.path