Skip to content

Commit

Permalink
Tweaks from review
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed Apr 19, 2023
1 parent 2394bd7 commit c414dc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/scripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ extensions, so:
nrniv script.py
nrniv -python script.hoc
nrniv -python script.py
python script.py
Will all work as expected.
It is also possible to execute code from the commandline, for example:

.. code-block:: shell
nrniv -c "hoc_statement"
nrniv -python "python_statement"
nrniv -python -c "python_statement"
python -c "python_statement"
In this case, it is necessary to tell NEURON whether or not the code being
passed to ``-c`` is HOC or Python code, using the ``-python`` option.
Expand Down Expand Up @@ -118,7 +120,7 @@ Multiple script files and commands:
* ``python``, ``python3``, ``pythonA.B`` ... ``pythonX.Y`` in ``$PATH``,
where the set of ``pythonX.Y`` names corresponds to all the Python
versions supported by the NEURON installation.
The search other matches the :ref:`NRN_PYTHON_DYNAMIC
The search order matches the :ref:`NRN_PYTHON_DYNAMIC
<cmake_nrn_python_dynamic>` setting that was used at build time.
* On Windows, some other heuristics are applied as a last resort.

Expand Down

0 comments on commit c414dc6

Please sign in to comment.