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

Use pkgutil to get package resources #47

Closed
jwp opened this issue Jul 11, 2010 · 1 comment
Closed

Use pkgutil to get package resources #47

jwp opened this issue Jul 11, 2010 · 1 comment

Comments

@jwp
Copy link
Contributor

jwp commented Jul 11, 2010

I've seen some people complain about projects using file, and that's exactly what py-postgresql uses to get lib*.sql files.

Make a function that will try to hit pkgutil first, and fallback to file based resolution.

@jwp jwp closed this as completed Aug 10, 2012
@jwp
Copy link
Contributor Author

jwp commented Aug 10, 2012

eh, we explicitly mark the distribution as not being zip safe. ISTM, if you want packed resources, you can override builtins to map to the appropriate resource.

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

No branches or pull requests

1 participant