From 561fe81d00f2eee45cfb51a062a1b2b578a39d6c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Jun 2018 09:24:36 +0530 Subject: [PATCH] Use base instead of cwd when checking for docs --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 9b312a24d..69daa58ee 100755 --- a/setup.py +++ b/setup.py @@ -543,7 +543,7 @@ def copy_man_pages(ddir): shutil.rmtree(os.path.join(mandir, 'man1')) except FileNotFoundError: pass - src = 'docs/_build/man' + src = os.path.join(base, 'docs/_build/man') if not os.path.exists(src): raise SystemExit('''\ The kitty man page is missing. If you are building from git then run: @@ -560,7 +560,7 @@ def copy_html_docs(ddir): shutil.rmtree(htmldir) except FileNotFoundError: pass - src = 'docs/_build/html' + src = os.path.join(base, 'docs/_build/html') if not os.path.exists(src): raise SystemExit('''\ The kitty html docs are missing. If you are building from git then run: @@ -790,7 +790,7 @@ def main(): ) elif args.action == 'linux-package': build(args, native_optimizations=False) - if not os.path.exists(os.path.join('docs/_build/html/index.html')): + if not os.path.exists(os.path.join(base, 'docs/_build/html')): run_tool(['make', 'docs']) package(args) elif args.action == 'osx-bundle':