Skip to content

Add check for GDAL_DATA environment variable #1

@cgmorton

Description

@cgmorton

This could probably be done in the init file so that it is checked everytime the module is imported. Something like the following:

# Check the GDAL_DATA environment variable
if "GDAL_DATA" not in os.environ:
    raise Exception('The GDAL_DATA environment variable is not set\n')
elif not os.path.isdir(os.getenv("GDAL_DATA")):
    raise Exception(
        'The GDAL_DATA environment folder does not exist:\n'
        '  {}'.format(os.getenv("GDAL_DATA")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions