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

pygrass.gis: Make Region importable from grass.pygrass.gis #2

Merged
merged 1 commit into from
May 19, 2019

Conversation

pmav99
Copy link
Contributor

@pmav99 pmav99 commented May 18, 2019

Currently, in order to import the Region class you need to import it
from pygrass.gis.region. This commit makes it possible to import it
from the pygrass.gis package. This way, all gis objects can be
imported/used from the same location. E.g.:

import grass.pygrass.gis as ggis

ggis.Region
ggis.Location
ggis.Mapset

Fixes https://trac.osgeo.org/grass/ticket/3844

Currently, in order to import the `Region` class you need to import it
from `pygrass.gis.region`. This commit makes it possible to import it
from the `pygrass.gis` package. This way, all `gis` objects can be
imported/used from the same location. E.g.:

    import grass.pygrass.gis as ggis

    ggis.Region
    ggis.Location
    ggis.Mapset

Fixes https://trac.osgeo.org/grass/ticket/3844
@landam landam self-assigned this May 19, 2019
@landam landam merged commit e328eab into OSGeo:master May 19, 2019
@neteler neteler added this to the 7.8.0 milestone Dec 9, 2021
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.

None yet

3 participants