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 20, 2019
1 parent a7b892d commit 0dc54fa
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 0dc54fa

Please sign in to comment.