load extensions first, then init spatialite

This commit is contained in:
Chris Amico 2022-02-15 13:09:31 -05:00
commit a974da5919

View file

@ -1379,14 +1379,14 @@ def create_database(path, enable_wal, init_spatialite, load_extension):
if enable_wal:
db.enable_wal()
# load spatialite from expected locations
if init_spatialite:
db.init_spatialite()
# load spatialite or another extension from a custom location
if load_extension:
_load_extensions(db, load_extension)
# load spatialite from expected locations and initialize metadata
if init_spatialite:
db.init_spatialite()
db.vacuum()