Merge "Use os.getcwd() instead of shelling out to run pwd"
This commit is contained in:
commit
253a10f64b
@ -40,7 +40,7 @@ metadata for the project where the docs reside::
|
|||||||
# tag that reported bugs will be tagged with
|
# tag that reported bugs will be tagged with
|
||||||
bug_tag = "your-chosen-tag"
|
bug_tag = "your-chosen-tag"
|
||||||
# source tree
|
# 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 allows us to pass arbitrary values into the html template
|
||||||
html_context = {"pwd": pwd, "gitsha": gitsha}
|
html_context = {"pwd": pwd, "gitsha": gitsha}
|
||||||
# Must set this variable to include year, month, day, hours, and minutes.
|
# Must set this variable to include year, month, day, hours, and minutes.
|
||||||
|
@ -69,7 +69,7 @@ gitsha = os.popen(git_cmd).read().strip('\n')
|
|||||||
# clickthrough on each page, such as user-guide or install-guide
|
# clickthrough on each page, such as user-guide or install-guide
|
||||||
bug_tag = "doc-builds"
|
bug_tag = "doc-builds"
|
||||||
# source tree
|
# 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 allows us to pass arbitrary values into the html template
|
||||||
html_context = { "pwd":pwd, "gitsha":gitsha, "bug_tag": bug_tag}
|
html_context = { "pwd":pwd, "gitsha":gitsha, "bug_tag": bug_tag}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user