Skip to content

Commit

Permalink
Added a check to the build directory creation in docs/conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gbpoole committed Jan 22, 2018
1 parent 1301c2f commit cc7413c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Expand Up @@ -85,7 +85,8 @@ def __init__(self,project_name,dir_root,dir_docs_build):
gbpBuild_project = project("gbpPy",project_root_dir,"@Sphinx_BUILD_DIR@")

# Make sure the build directory exists
os.makedirs(gbpBuild_project.dir_docs_build, exist_ok=True)
if(not os.path.isdir(gbpBuild_project.dir_docs_build)):
os.makedirs(gbpBuild_project.dir_docs_build)

# Copy project .rst files to build directory
filenames = os.listdir(os.path.abspath(os.path.join(project_root_dir,"docs")))
Expand Down

0 comments on commit cc7413c

Please sign in to comment.