Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: Create separate bullet point for Python DLL
  • Loading branch information
TheJanzap committed Aug 27, 2024
commit 243daceef6ff15c4e5b286e98f1ff2ccaba1cf72
6 changes: 3 additions & 3 deletions doc/source/dotnet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ These classes include PyObject, PyList, PyDict, PyTuple, etc.
At a very high level, to embed Python in your application one will need
to:

- Reference ``Python.Runtime.dll`` (e.g. via a ``PackageReference``,
the ``Runtime.PythonDLL`` property or the ``PYTHONNET_PYDLL``
environment variable)
- Reference ``Python.Runtime.dll`` (e.g. via a ``PackageReference``)
- Set the Python library the code should run with via the ``Runtime.PythonDLL``
property or the ``PYTHONNET_PYDLL`` environment variable
- Call ``PythonEngine.Initialize()`` to initialize Python
- Call ``var mod = PyModule.Import(name)`` to import a module as ``mod``

Expand Down