Correct module for site customization of path

Liste des GroupesRevenir à cl python 
Sujet : Correct module for site customization of path
De : thjmmj15 (at) *nospam* gmail.com (Tim Johnson)
Groupes : comp.lang.python
Date : 01. Nov 2024, 01:37:44
Autres entêtes
Message-ID : <mailman.65.1730420509.4695.python-list@python.org>
References : 1
User-Agent : Mozilla Thunderbird
FYI: I am retired programmer using a recent upgrade to ubuntu 24.04 and python 3.12
My needs are that of a hobbyist at this time. I am on a single user home desktop with root privileges available.
After the recent upgrades I had to install youtube_dl with pipx for the new python version.
When I ran the script which imported youtube_dl, I got an import error as it appears the path to the module
was not in sys.path. For me,  it was a simple matter of appending the path for youtube_dl to sys.path, however,
I would prefer to not have to do an append at every script using it.
There is a boatload of documentation of site path configuration, but still, I am not sure what option to take.
Recommendations are invited and welcome.
Thanks
--
Tim
thjmmj15@gmail.com

Date Sujet#  Auteur
1 Nov 24 * Correct module for site customization of path2Tim Johnson
1 Nov 24 `- Re: Correct module for site customization of path1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal