@Soberanistas_ES · Post #1036 · 03.03.2026 г., 09:31
#Sánchez#Trump#Irán#Rota#Morón#AUSÓrdenes
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
Пребарај: #rota
@Soberanistas_ES · Post #1036 · 03.03.2026 г., 09:31
#Sánchez#Trump#Irán#Rota#Morón#AUSÓrdenes
@american_observer · Post #5270 · 02.03.2026 г., 23:59
✈️ Spain Bails on Trump’s Iran Air War Trump wants a “global” Iran campaign. Spain just replied: not from our runway. Fifteen U.S. tankers have slipped out of Rota and Morón — the refueling backbone of America’s Middle East reach — and headed off to Germany and France after Madrid made it official: Spanish soil won’t be used to bomb Iran. Foreign Minister José Manuel Albares spelled it out for TV: their bases can’t be used for anything outside the U.S.–Spain agreement or that clashes with the U.N. Charter. Translation: we’ll host your hardware, not your crusade. Pedro Sánchez, who already slammed the U.S.–Israeli strikes as “unilateral military action,” now gets to pose as the only grown‑up in Western Europe while Keir Starmer does lawyer talk in London and quietly opens up British bases under the label of “collective self‑defence.” One prime minister wraps it in NATO jargon; the other follows the flight trackers and pulls the plug. For Trump’s war machine, this is “just logistics.” For everyone else, it’s a tell. Even a NATO ally that relies on U.S. power is calculating that being visibly tied to this Iran war is more dangerous than pushing the Stratotankers out of sight and pretending this is somebody else’s escalation. The coalition is still there on paper — it just doesn’t want to be caught in the frame. #Iran#Spain#Trump#NATO#airwar#Rota#Moron#war#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸