E3SM-Project / E3SM-Project/zppy

Update references to non-Python files

Open
#44 0 comments 1 reaction 1 assignee Claimed by @forsyth2 View on GitHub
priority: low
Dominant language
Python
Stars
8
Forks
16
Avg merge
3d 21h
Merged PRs (30d)
3

Description

Update references to non-python files. In #36, using `importlib.resources.path` was discussed. While it is not strictly required, it is the preferred method.

Replace `templateDir = os.path.join( os.path.dirname(__file__), 'templates' )` in `zppy/__main__.py` with something like https://github.com/MPAS-Dev/compass/blob/864ebf7425d5f076d4c18673b43d102308da7071/compass/landice/tests/enthalpy_benchmark/B/__init__.py#L44-L46:
```
from importlib.resources import path
[...]
with path('compass.landice.tests.enthalpy_benchmark', 'README') as target:
symlink(str(target), '{}/README'.format(self.work_dir))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.