Merge "Use os.getcwd() instead of shelling out to run pwd"

This commit is contained in:
Jenkins 2015-05-26 00:37:31 +00:00 committed by Gerrit Code Review
commit 253a10f64b
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ metadata for the project where the docs reside::
# tag that reported bugs will be tagged with
bug_tag = "your-chosen-tag"
# source tree
pwd = os.popen("pwd").read().strip('\n')
pwd = os.getcwd()
# html_context allows us to pass arbitrary values into the html template
html_context = {"pwd": pwd, "gitsha": gitsha}
# Must set this variable to include year, month, day, hours, and minutes.

View File

@ -69,7 +69,7 @@ gitsha = os.popen(git_cmd).read().strip('\n')
# clickthrough on each page, such as user-guide or install-guide
bug_tag = "doc-builds"
# source tree
pwd = os.popen("pwd").read().strip('\n')
pwd = os.getcwd()
# html_context allows us to pass arbitrary values into the html template
html_context = { "pwd":pwd, "gitsha":gitsha, "bug_tag": bug_tag}