Skip to content

Commit

Permalink
try get cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
interrogator committed Aug 23, 2019
1 parent 6249bd6 commit 9d19628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buzzword/parts/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import buzzword
import subprocess
import os
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"
commit = subprocess.check_output(commit.split()).decode("utf-8").strip()
print('CURRENT DIR', os.getcwd())
commit = os.popen(commit).read()
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 9d19628

Please sign in to comment.