<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_relative_path(self, common_prefix, base_dir):
 """ generate output representation of rows """

        self.short_filename = self.filename.replace(common_prefix, '', 1)