Skip to content

Commit

Permalink
fix grass/__init__.py
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37993 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
landam committed Jun 20, 2009
1 parent 5371500 commit 3e3983e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ $(GDIR): $(PYDIR)

$(DSTDIR): $(GDIR)
test -d $@ || $(MKDIR) -p $@
test -f __init__.py || touch $(GDIR)/__init__.py
@echo "import script" >> $(GDIR)/__init__.py
@cat grass__init__.py > $(GDIR)/__init__.py

$(DSTDIR)/%: %
$(INSTALL_DATA) $< $@
Expand Down
1 change: 0 additions & 1 deletion lib/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
from db import *
from raster import *
from vector import *

4 changes: 4 additions & 0 deletions lib/python/grass__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os
__all__ = ["script"]
if os.path.exists(os.path.join(os.path.dirname(__file__), "lib", "__init__.py")):
__all__.append("lib")
2 changes: 0 additions & 2 deletions swig/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ $(GDIR): $(PYDIR)

$(DSTDIR): $(GDIR)
test -d $@ || $(MKDIR) -p $@
test -f __init__.py || touch $(GDIR)/__init__.py
@echo "import lib" >> $(GDIR)/__init__.py

$(DSTDIR)/_%.so: _%.so
$(INSTALL) $< $@
Expand Down

0 comments on commit 3e3983e

Please sign in to comment.