diff --git a/docs/python_api/examples/renderdoc_intro.rst b/docs/python_api/examples/renderdoc_intro.rst index 917d302a3..701e0f044 100644 --- a/docs/python_api/examples/renderdoc_intro.rst +++ b/docs/python_api/examples/renderdoc_intro.rst @@ -12,6 +12,10 @@ Loading the Module For this section we assume you have built a copy of RenderDoc and have the module (``renderdoc.pyd`` or ``renderdoc.so`` depending on your platform). For information on how to build see the `GitHub repository `_. +.. note:: + + You must use exactly the same version of python to load the module as was used to build it. On Windows the version of python that comes with the repository and is used by default is python 3.6. + Once you have the module, either place the module within your python's default library search path, or else insert the location of the python module into the path in your script. You can either set the ``PYTHONPATH`` environment variable or do it at the start of your script: .. highlight:: python @@ -118,4 +122,4 @@ The full source for this example is available below: :download:`Download the example script `. -.. literalinclude:: renderdoc_intro.py \ No newline at end of file +.. literalinclude:: renderdoc_intro.py diff --git a/docs/python_api/index.rst b/docs/python_api/index.rst index f51025d5b..45ac58274 100644 --- a/docs/python_api/index.rst +++ b/docs/python_api/index.rst @@ -10,6 +10,8 @@ Within RenderDoc - when either running scripts on the command line, or via the : It is also possible to build the ``renderdoc`` module standalone which can be loaded into python and used for scripting directly without the UI program. Due to the inherent difficulty of distributing C python modules this isn't included by default in distributed builds at the time of writing, but is generated by default in source builds - ``renderdoc.pyd`` on windows or ``renderdoc.so`` elsewhere. +You must use exactly the same version of python to load the module as was used to build it. On Windows the version of python that comes with the repository and is used by default is python 3.6. + .. note:: RenderDoc only supports Python 3.4+, Python 2 is not supported.