Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #196927

Correct module for site customization of path

From Tim Johnson <thjmmj15@gmail.com>
Newsgroups comp.lang.python
Subject Correct module for site customization of path
Date 2024-10-31 15:37 -0800
Message-ID <mailman.65.1730420509.4695.python-list@python.org> (permalink)
References <adfac553-cac7-4441-b70a-9197723279d8@gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar


Thread

Correct module for site customization of path Tim Johnson <thjmmj15@gmail.com> - 2024-10-31 15:37 -0800

csiph-web