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

improved clawpack/__init__.py so no symbolic links needed #178

Open
wants to merge 1 commit into
base: gpu
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 25 additions & 1 deletion clawpack/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
__all__ = ['clawutil','pyclaw','petclaw','forestclaw','riemann','visclaw']
import os as _os

_subpackages = {
'clawutil': 'clawutil/src/python',
'riemann': 'riemann',
'visclaw': 'visclaw/src/python',
'pyclaw': 'pyclaw/src',
'petclaw': 'pyclaw/src',
'forestclaw': 'pyclaw/src',
'classic': 'classic/src/python',
'amrclaw': 'amrclaw/src/python',
'geoclaw': 'geoclaw/src/python',
}

__all__ = list(_subpackages.keys())

_root = _os.path.dirname(__path__[0])
_path = (_os.path.join(_root, *_sdir.split('/'))
for _sdir in set(_subpackages.values()))
__path__.extend(_sdir for _sdir in _path
if _os.path.isdir(_sdir))
del _root, _path

__version__ = 'GPU' # must also be changed in setup.py