Вопросы про переменную PYTHONPATH
🔸 Как она определяет пути поиска модулей при импорте?
Пути поиска модулей находятся в списке sys.path. Как формируется этот список?
Исходя из документации мы может выделить 3 основных этапа.
▫️Путь к запускаемому скрипту или рабочая директория
▫️ Переменная PYTHONPATH
▫️ Стандартные пути к библиотекам
Это значит, что все три этапа выполняются в момент инициализации интерпретатора. Результат заполняет список sys.path. В том числе и пути, указанные в переменной PYTHONPATH.
🔸 Можно ли добавлять новые пути в эту переменную в Python-коде?
Можно, но учитывая, что используется она только во время старта интерпретатора, никакого эффекта это иметь не будет.
Для изменения путей поиска модулей в коде нужно изменять непосредственно список sys.path.
🔸 Можно ли указать много путей для поиска?
Да, с помощью переменной PYTHONPATH можно указать несколько директорий, разделённых символом разделения пути. Для Linux это символ ":", для Windows это ";".
Например:
export PYTHONPATH=/mnt/libs:~/mylibs
#basic#tricks
Girls’ Meeting at Green University!
✅On October 23, a special gathering was held for our female students, focusing on etiquette, moral values, and personal growth.
🔄The event also featured a psychological training session that helped participants build confidence and strengthen communication skills.
#GreenUniversity#StudentLife#GirlsMeeting#PersonalDevelopment
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
📖Title : This Too Shall Pass
✍️Author : Julia Samuel
⭐️Rating : 3.72/5 (Goodreads)
📆Published : Mar 05, 2020
————————————————
Summary:This Too Shall Pass by Julia Samuel is a profound exploration of how humans cope with change and emotional upheaval. Drawing on her extensive experience as a psychotherapist, Samuel presents twelve moving and deeply personal case studies that cover themes such as grief, relationships, identity, and trauma. Each story reveals how people struggle with, resist, and ultimately adapt to change. Through compassionate storytelling and psychological insight, Samuel illustrates that while change is inevitable and often painful, it also offers opportunities for growth and healing. The book is a comforting, insightful guide for anyone navigating life’s unpredictable transitions and emotional challenges.
————————————————
#nonfiction#psychology#selfhelp#personaldevelopment@Bookslibraryofficial@free_novellas@the_ancient_library
Diversity & Inclusion
There is a significant relationship between competitive profit gains and diversity.
Companies with gender, ethnic and racial diversity are at least 15 percent more likely to experience above-average financial returns.
#Wednesday#Day-3
#personalDevelopment#selfhelp#leadership#Growth#Teambuild
Read 📚:- https://t.me/Think_CreativeHub
$5.4M Funding for Tenor
Tenor has raised $5.40 million on December 19, 2024. This platform enables managers to rehearse difficult conversations with realistic voice AI characters and receive instant feedback for improvement.
#Funding#AI#VoiceAI#Management#Feedback#Conversations#Tech#Startup#Investment#Training#Innovation#Leadership#Simulation#Dialogue#PersonalDevelopment#Business#Growth#Application#Software#Tenor