TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #201 · 13 јан.

Мы уже знаем, что на текущую сессию интерпретатора изменение PYTHONPATH никак не повлияет. Но если вы запустите дочерний процесс, то он унаследует окружение текущего процесса, а значит и изменения в любых переменных будут на него влиять. Вот небольшой пример: Объявляем переменную user@host:~$ export PYTHONPATH=/path1 Запускаем интерпретатор user@host:~$ python3 Проверим что в sys.path >>> import sys >>> print(sys.path) ['', '/path1', '/usr/lib/...', ...] Добавляем что-то в переменную >>> import os >>> os.emviron['PYTHONPATH'] = '/path1:/path2' >>> print(sys.path) ['', '/path1', '/usr/lib/...', ...] Изменений нет. Но давайте запустим дочерний процесс и посмотрим там >>> os.system('python3') # теперь мы находимся в другом процессе >>> import sys >>> print(sys.path) ['', '/path1', '/path2', '/usr/lib/...', ...] Тоже самое будет и с subprocess, так как по умолчанию текущее окружение тоже наследуется. >>> import subprocess >>> subprocess.call(['python3', '-c', 'import sys;print(sys.path)']) ['', '/path1', '/path2', '/usr/lib/...', ...] ______________________ Лучшей практикой является передача энвайронмента явно через аргумент env! import subprocess subprocess.call(cmd, env={'PYTHONPATH': '...'}) Это поможет точно понимать какое окружение будет у запускаемого процесса и при этом не изменять окружение текущего процесса. #basic

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #kashkadarya

当前筛选 #kashkadarya清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #12420 · 17.04.2026 г., 09:59

#Kashkadarya Spring is the breath of nature, the heartbeat of our land. When fields are covered with scarlet tulips, it feels as if the earth itself has dressed in festive colors… 🌺 Yet sadly, there are those who, instead of admiring this beauty, consider destroying it a “heroic” act. A video circulating on social media shows a car with the license plate 70 R418XA and two other vehicles driving over fields of tulips, crushing not only the flowers but also the insects and reptiles that live there. What is most disturbing is that they record this cruelty with laughter and a sense of “pride”… This is not just a violation. This is violence against nature. This is a clear manifestation of moral degradation. Tulips are not just flowers. They are a symbol of spring, a vital part of the ecosystem, and a habitat for thousands of living beings. Destroying them means breaking an entire chain of life. The exact location of the incident is unknown, but based on the license plate, it is likely that it took place in the Kashkadarya region. In this regard, we call on the Kashkadarya Regional Department of Ecology to provide a legal assessment of this incident and hold those responsible accountable under the law. Nature does not belong to us. We are only its guests. If we fail to protect beauty, we will fail to protect the future… 🌍 ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.

Hashtags

Teach For Uzbekistan | Official

@teachforuzbekistan · Post #300 · 21.10.2025 г., 14:07

Qashqadaryodagi fellowlarimiz faoliyatlarining ikkinchi yilini davom ettirar ekan, ular uchun loyihani samarali boshqarish va project management tamoyillarini amaliy o‘rganishga bag‘ishlangan sessiya tashkil etildi. 📆 18–19-oktabr kunlari o‘tkazilgan mazkur sessiyada fellowlar ta’limdagi tashabbuslarni rejalashtirish, resurslarni boshqarish va jamoaviy ishni samarali yo‘lga qo‘yish bo‘yicha tajriba almashishdi. 💡 Sessiya BMT Taraqqiyot dasturi (UNDP) start-up tashabbuslar loyihasi mentori Barnoxon Artikxodjayeva tomonidan olib borildi. 😎Teach For Uzbekistan jamoasi Barnoxon Artikxodjayevaga o‘z tajribasi va qo‘llab-quvvatlovi uchun samimiy minnatdorlik bildiradi! #TeachForUzbekistan#FellowDevelopment#ProjectManagement#Qashqadaryo#EducationForAll 💬💬💬 As our fellows in Kashkadarya continue their second year of activities, a session was organized to strengthen their skills in effective project management and the practical application of project management principles. 📆 Held on October 18–19, the session focused on planning educational initiatives, managing resources, and fostering effective teamwork. 💡 The session was conducted by Barnokhon Artikkhodjaeva, mentor of the UNDP Start-up Initiatives Project. 😎The Teach For Uzbekistan team extends its sincere gratitude to Barnokhon Artikkhodjaeva for her valuable insights and continuous support! #TeachForUzbekistan#FellowDevelopment#ProjectManagement#Kashkadarya#EducationForAll 📱Instagram🕊Telegram🔹Linkedin📱Facebook📺YouTube🌍Veb sayt