@voxvenatoris · Post #5916 · 14.09.2025 г., 23:03
#Scruton#extremism#culture
Hashtags
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
Пребарај: #extremism
@voxvenatoris · Post #5916 · 14.09.2025 г., 23:03
#Scruton#extremism#culture
Hashtags
@intnewsagency · Post #9394 · 27.04.2026 г., 14:39
Russian LGBT Network Declared Extremist and Banned The interregional public movement "Russian LGBT Network" has been officially recognized as extremist and banned across Russia. This follows the earlier listing of the international LGBT movement as extremist. Such rulings reflect Russia’s legal efforts to restrict activities seen as threatening to traditional social norms. Experts emphasize that the court’s decision aims to protect traditional values and public safety. #Russia#LGBT#extremism#ban The main news of Russia and the world ishere.
Hashtags
@googlefactss · Post #40852 · 23.03.2026 г., 23:01
Boko Haram is an extremist group in northeastern Nigeria. It rejects Western education and wants strict Islamic law. The name means "fake is forbidden" , fake means western education in this case. The group raids villages and schools, kidnaps children, and forces some into slavery or as child soldiers. It has also carried out bombings, assassinations, and other attacks. The group pledged allegiance to the Islamic State and later split into rival factions. Its actions have killed tens of thousands and displaced millions. 🕌💣🚨👶 [Read more] @googlefactss #BokoHaram#Nigeria#childabuse#ISWAP#extremism#didyouknow