Merge pull request #566 from EasyRiderr/dev

[DOCs] fix typo and add python virtual env support for pcbnew
This commit is contained in:
Salvador E. Tropea 2024-01-22 09:02:44 -03:00 committed by GitHub
commit c49a382300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View File

@ -4,7 +4,7 @@
Quick start
~~~~~~~~~~~
If you want to *learn by examples*, or you just want to take a look a
If you want to *learn by examples*, or you just want to take a look at
what KiBot can do, you can use the ``--quick-start`` command line
option.

View File

@ -144,8 +144,18 @@ Notes about virtualenv
~~~~~~~~~~~~~~~~~~~~~~
If you try to use a Python virtual environment youll need to find a way
to make the KiCad module (``pcbnew``) available on it. I dont know how
to make it.
to make the KiCad module (``pcbnew``) available on it. From the `linked
GitHub issue
<https://github.com/yaqwsx/PcbDraw/issues/119#issuecomment-1274029481>`_
, to make the ``pcbnew`` available on the virtual env, you will need to
run the following command:
.. code:: shell
python -m venv --system-site-packages venv
Then python started in the venv will look at the packages in the system
location, which is where KiCad puts its python code.
In addition: note that the virtual env will change the system share data
paths. They will no longer point to things like ``/usr/share/`` but to a