From c8a1de429b4ba81c14348db0c04f6d3ea3ec4a17 Mon Sep 17 00:00:00 2001 From: Aaron Markham Date: Thu, 18 Jul 2019 00:12:45 -0700 Subject: [PATCH] Julia path patch (#15561) * fix path to be static * add MXNET_HOME setting for Julia docs * Update docs/mxdoc.py Co-Authored-By: Iblis Lin --- docs/mxdoc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/mxdoc.py b/docs/mxdoc.py index f70dcfad1d0e..f2bb9714de0c 100644 --- a/docs/mxdoc.py +++ b/docs/mxdoc.py @@ -98,6 +98,8 @@ def build_mxnet(app): def build_julia_docs(app): """build Julia docs""" + os.environ['MXNET_HOME'] = os.path.abspath(os.path.join(app.builder.srcdir, '..')) + print("Julia will check for MXNet in {}/lib".format(os.environ.get('MXNET_HOME'))) dest_path = app.builder.outdir + '/api/julia/site' _run_cmd('cd {}/.. && make -C julia/docs'.format(app.builder.srcdir)) _run_cmd('mkdir -p {}'.format(dest_path))