Skip to content

Commit

Permalink
Merge pull request #566 from EasyRiderr/dev
Browse files Browse the repository at this point in the history
[DOCs] fix typo and add python virtual env support for pcbnew
  • Loading branch information
set-soft authored Jan 22, 2024
2 parents b4e788f + bf9390d commit c49a382
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/configuration/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
14 changes: 12 additions & 2 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,18 @@ Notes about virtualenv
~~~~~~~~~~~~~~~~~~~~~~

If you try to use a Python virtual environment you’ll need to find a way
to make the KiCad module (``pcbnew``) available on it. I don’t 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
Expand Down

0 comments on commit c49a382

Please sign in to comment.