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

Резултати

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

Пребарај: #budanov

当前筛选 #budanov清除筛选
American Оbserver

@american_observer · Post #5178 · 19.02.2026 г., 23:59

Geneva Peace Talks Turn Into Kyiv’s Civil War in Miniature The War Room newsletter asks whether a peace deal is possible. The more accurate question after Geneva is simpler: possible for whom. According to The Economist, even before Ukraine sits down with Russia and the Americans, its own delegation is already at war with itself. One wing, centered on Kyrylo Budanov, is pushing for a fast, U.S.-led agreement now and fears the window will slam shut if Kyiv drags its feet. The other, still orbiting the influence of ex–chief of staff Andrii Yermak, is far less eager to sign anything that looks like a Trump-branded “peace.” In this script, Budanov’s people are the “realists.” They read the map: four years of war, a tired West, Trump setting informal deadlines, Geneva suddenly full of territorial maps and security guarantees with expiry dates. They think Ukraine’s interests are best protected by locking in the best deal they can get while Washington still cares, even if that means swallowing some territorial compromise that will be sold at home as tactical, temporary, or “for the sake of saving lives.” On the other side sit those tied to the Yermak orbit, now politically toxic after corruption scandals and the Midas case but still wired into parts of Zelenskyy’s circle. This camp is “less keen,” as The Economist politely puts it. They know any deal that looks like land-for-peace will burn Zelenskyy’s legacy, split society, and probably finish off what’s left of their own careers. Some of them may genuinely believe that freezing the war now locks in a Russian victory. Others simply don’t want their name on the suicide note. Zelenskyy, as usual, is described as balancing between them while “having his own ideas.” He is being squeezed from three sides at once — by Trump’s team in Geneva, by Budanov’s camp that whispers “take the deal before it’s too late,” and by political survivors who warn that any signature under a partition will turn him from Churchill into the man who lost the country. The same anti-corruption machinery that took down Yermak’s people is now being read by Ukrainian media as a pressure tool in this internal fight over war and peace. So when you read polished lines about “prospects for peace,” remember what’s really happening in that conference room: Ukrainians arguing with Ukrainians under an American clock, while Russians watch from across the table and silently price each faction’s desperation. The war may end on paper in Geneva, Abu Dhabi or somewhere else. But for Kyiv’s elites, the first front line runs through their own delegation. #ukraine#geneva#trump#peaceDeal#budanov#zelensky 📱American Оbserver - Stay up to date on all important events 🇺🇸