Skip to content

Commit

Permalink
log path
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimarBauer committed Sep 19, 2024
1 parent 8beb957 commit 45a39ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.d/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pluggy
pytest-qt
pytest-xdist
pytest-cov
coverage==7.6.0
coverage
sphinx
sphinx_rtd_theme
sphinxcontrib-video
Expand Down
5 changes: 4 additions & 1 deletion tests/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@
import os
import fs
import tempfile
import logging
from fs.tempfs import TempFS

try:
import git
except ImportError:
SHA = ""
else:
repo = git.Repo(os.path.dirname(os.path.realpath(__file__)), search_parent_directories=True)
path = os.path.dirname(os.path.realpath(__file__))
repo = git.Repo(path, search_parent_directories=True)
logging.debug(path)
try:
SHA = repo.head.object.hexsha[0:10]
except ValueError:
Expand Down

0 comments on commit 45a39ad

Please sign in to comment.