Skip to content

Commit

Permalink
Dev docs: use absolute path when creating development documentation, …
Browse files Browse the repository at this point in the history
…include missing speech dict handler in NVDA 2017.4 (PR nvaccess#7861)

When building development docs, sourceEnv is imported again. Somehow, using `os.path.dirname(os.path.dirname(__file__))` yields an empty path, so resort to using absolute path, which then allows dev docs switch to work properly.

scons/devDocs: include speechDictHandler folder from 2017.4 onwards, change http to https
  • Loading branch information
josephsl authored and feerrenrut committed Jan 3, 2018
1 parent 2bc0511 commit f7853f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,10 @@ devDocs_nvda = env.Command(devDocsOutputDir.Dir("nvda"), None, [[
sys.executable, "-c", "import sourceEnv; from epydoc.cli import cli; cli()",
"--output", "${TARGET.abspath}",
"--quiet", "--html", "--include-log", "--no-frames",
"--name", "NVDA", "--url", "http://www.nvaccess.org/",
"--name", "NVDA", "--url", "https://www.nvaccess.org/",
"*.py", "appModules", "brailleDisplayDrivers", r"comInterfaces\__init__.py",
"config", "contentRecog", "globalPlugins", "gui", "mathPres", "NVDAObjects",
"synthDrivers", "textInfos", "virtualBuffers",
"speechDictHandler", "synthDrivers", "textInfos", "virtualBuffers",
]])

env.Alias('devDocs', [devGuide, devDocs_nvda])
Expand Down
2 changes: 1 addition & 1 deletion source/sourceEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import os

# Get the path to the top of the repo; i.e. where include and miscDeps are.
TOP_DIR = os.path.dirname(os.path.dirname(__file__))
TOP_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
# Directories containing Python modules included in git submodules.
PYTHON_DIRS = (
os.path.join(TOP_DIR, "include", "scons", "src", "engine"),
Expand Down

0 comments on commit f7853f3

Please sign in to comment.