Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

bug fix #21

wants to merge 1 commit into from

Conversation

andradesalazar
Copy link

Index was not created because of small path error and copy error for /lib dir

@stefanches7
Copy link
Collaborator

The bug is real, thanks for the PR!
Just a small detail: we have htmlOutputPath to make it configurable, so could you mind it in the fix as well? I comment the lines.



wbuildPath = pathlib.Path(wbuild.__file__).parent
shutil.copytree(str(wbuildPath) + "/html/lib", libDir) ### quick fix for line below
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be just htmlOutputPath + '/lib' instead of wbuildPath + "/html/lib"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that's correct, since we want to copy from wbuildPath/.. to libDir (= htmlOutputPath + "/lib")

#fill the HTML template with the constructed tag structure
wbuildPath = pathlib.Path(wbuild.__file__).parent

template = open(str(wbuildPath / "template.html")).read()
template = open(str(wbuildPath / "html/template.html")).read()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See below, analogous

@mumichae
Copy link

mumichae commented Sep 10, 2020

These changes are already included in the latest version of wBuild, and they seem to be fully functional, so this PR can be closed. @kTakumo @andradesalazar @stefanches7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants