Sujet : Correct module for site customization of path
De : thjmmj15 (at) *nospam* gmail.com (Tim Johnson)
Groupes : comp.lang.pythonDate : 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
-- Timthjmmj15@gmail.com