def add(self, dist):
new_path = (<EOL>dist.location not in self.paths and (<EOL>dist.location not in self.sitedirs or<EOL>dist.location == os.getcwd()<EOL>)<EOL>)<EOL>if new_path:<EOL><INDENT>self.paths.append(dist.location)<EOL>self.dirty = True<EOL><DEDENT>Environment.add(self, dist)<EOL>
Add `dist` to the distribution map