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

Research ctypes.util.find_library('spatialite') #1292

Open
simonw opened this issue Apr 4, 2021 · 1 comment
Open

Research ctypes.util.find_library('spatialite') #1292

simonw opened this issue Apr 4, 2021 · 1 comment

Comments

@simonw
Copy link
Owner

simonw commented Apr 4, 2021

Spotted this in the Django SpatiaLite backend: https://github.com/django/django/blob/8f6a7a0e9e7c5404af6520ae606927e32415eb00/django/contrib/gis/db/backends/spatialite/base.py#L24-L36

ctypes.util.find_library('spatialite')
@simonw simonw added the research label Apr 4, 2021
@simonw
Copy link
Owner Author

simonw commented Apr 4, 2021

Could maybe replace this code:

# Can replace with sqlite-utils when I add that dependency
def find_spatialite():
for path in SPATIALITE_PATHS:
if os.path.exists(path):
return path
raise SpatialiteNotFound

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