Skip to content

Commit

Permalink
Fix build outside git.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed Feb 29, 2020
1 parent af6fd71 commit d485b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions defines.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def repository_root(self):
if ('APPVEYOR' in os.environ) or self.no_git:
self._repository_root = self.local_path
else:
self._repository_root = os.path.abspath(check_output(['git', 'rev-parse', '--show-toplevel']).rstrip())
self._repository_root = os.path.abspath(check_output(['git', 'rev-parse', '--show-toplevel']).rstrip()).decode('utf-8')
except (CalledProcessError, OSError):
self._repository_root = os.path.abspath(os.path.dirname(inspect.getfile(inspect.currentframe())))

return self._repository_root.decode('utf-8')
return self._repository_root

@property
def repository_version(self):
Expand Down

0 comments on commit d485b75

Please sign in to comment.