def set_path(self, path):
if os.path.isabs(path):<EOL><INDENT>path = os.path.normpath(os.path.join(self.cwd, path))<EOL><DEDENT>self.path = path<EOL>self.relative = os.path.relpath(self.path, self.base)<EOL>
Set the path of the file.