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

Add dependency check #108

Merged
merged 4 commits into from
Oct 6, 2015
Merged

Add dependency check #108

merged 4 commits into from
Oct 6, 2015

Conversation

Foggalong
Copy link
Contributor

I was working on this but then you merged :P We also need to be sure that the module can be imported (not just installed) so I added a similar check to the one for python3-cairosvg only with the lightest possible function I could find.

cairo_version is the simplest function I could find to import to reduce it's load on the script. There's a way to test if a module exists to import without actually import it but it has some nasty stdout so you then have to import modules to deal with that and it's just not worth it.
@bilelmoussaoui
Copy link
Owner

Thanks !

bilelmoussaoui added a commit that referenced this pull request Oct 6, 2015
@bilelmoussaoui bilelmoussaoui merged commit 05a1896 into bilelmoussaoui:master Oct 6, 2015
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.

2 participants