Skip to content
Snippets Groups Projects
Commit e97851ae authored by Christian Eichenberger's avatar Christian Eichenberger :badminton:
Browse files

Update FAQ.rst Sample usage did not render.

parent a80c4b3e
No related branches found
No related tags found
No related merge requests found
......@@ -22,14 +22,20 @@ Frequently Asked Questions (FAQs)
Sample usages:
.. code-block:: python
from importlib_resources import path
with path(package, resource) as file_in:
new_grid = np.load(file_in)
And:
.. code-block:: python
from importlib_resources import read_binary
load_data = read_binary(package, resource)
self.set_full_state_msg(load_data)
.. _importlib-resources: https://importlib-resources.readthedocs.io/en/latest/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment