permissions – FreeCAD cannot access files in my home directory?

I am trying to add /home/peter/.pyenv/versions/3.10.12/lib/python3.10/site-packages/ to the python library path inside FreeCAD. But FreeCAD is giving my a permission denied error.

>>> import os
>>> os.listdir('/home/peter/.pyenv/versions/3.10.12/lib/python3.10/site-packages/')
Traceback (most recent call last):
  File "", line 1, in 
PermissionError: [Errno 13] Permission denied: '/home/peter/.pyenv/versions/3.10.12/lib/python3.10/site-packages/'

Read more here: Source link