Skip to content

Commit

Permalink
use whole path to git
Browse files Browse the repository at this point in the history
  • Loading branch information
interrogator committed Aug 23, 2019
1 parent 9d19628 commit ff0b465
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buzzword/parts/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import buzzword
import os
import subprocess
import dash_core_components as dcc
import dash_html_components as html
from buzzword.parts import style
Expand All @@ -13,11 +13,11 @@ def _make_navbar(debug):
"""
Generate navigation bar. Debug will add version information
"""

if debug:
version = buzzword.__version__
commit = "git rev-parse --short HEAD"
print('CURRENT DIR', os.getcwd())
commit = os.popen(commit).read()
commit = "/usr/bin/git rev-parse --short HEAD"
commit = subprocess.check_output(commit.split()).decode("utf-8").strip()
ver_string = "version {}: {}".format(version, commit)
github = "https://github.com/interrogator/buzzword/tree/" + commit
git_sty = {**style.NAV_HEADER, **{"fontSize": "12pt", "paddingLeft": "20px"}}
Expand Down

0 comments on commit ff0b465

Please sign in to comment.