Skip to content

Commit

Permalink
Revise Project.__eq__() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
csadorf committed May 25, 2019
1 parent 30eb14c commit 8750e88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion signac/contrib/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def to_uri(self):
return 'signac://localhost{}'.format(self.root_directory())

def __eq__(self, other):
return repr(self) == repr(other)
return self.root_directory() == other.root_directory() and \
self.workspace() == other.workspace()

@property
def config(self):
Expand Down

0 comments on commit 8750e88

Please sign in to comment.