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

Fix usage with a relative input SVG file path #251

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

Conversation

Lucas-C
Copy link

@Lucas-C Lucas-C commented Sep 12, 2019

Without this fix, one needs to always pass absolute path to the cairosvg command.

There are probably other ways to fix this, maybe by calling os.path.abspath in cairosvg.parser.Tree.__init__

Quick test:

CAIROSVG_TEST_FILES=struct-image-01-t.svg pytest test_non_regression/test_non_regression.py

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.

1 participant