@property<EOL><INDENT>def file_path_short(self):<DEDENT>
if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>if self.file_path:<EOL><INDENT>result = None<EOL>for path in sys.path:<EOL><INDENT>try:<EOL><INDENT>candidate = os.path.relpath(self.file_path, path)<EOL><DEDENT>except ValueError:<EOL><INDENT>continue<EOL><DEDENT>if not result or (len(candidate.split(os.sep)) < len(result.split(os.sep))):<EOL><INDENT>result = candidate<EOL><DEDENT><DEDENT>self._file_path_short = result<EOL><DEDENT>else:<EOL><INDENT>self._file_path_short = None<EOL><DEDENT><DEDENT>return self._file_path_short<EOL>
Return the path resolved against the closest entry in sys.path