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

File resolution issues when importing + defining base_path #33

Closed
crowdagger opened this issue Dec 16, 2016 · 0 comments
Closed

File resolution issues when importing + defining base_path #33

crowdagger opened this issue Dec 16, 2016 · 0 comments
Labels

Comments

@crowdagger
Copy link
Owner

Let's say you have the following structure:

  • common.book
  • images/
    • foo.png
  • 01/
    • 01.book
  • 02/
    • 02.book

In common.book, you want to define the base path for images to images/:

resources.base_path.images: images/

You also want to specify an icon for html rendering:

html.icon: foo.png

But now, when you run crowbook 01/01.book you get an error: "Could not find file '01/../images/../foo.png'"

This is because "../" is concatenated to html.icon, which would be the thing to do if resources.base_bath was not defined, but in this case it causes a problem.

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

No branches or pull requests

1 participant