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 слични објави

Пребарај: #energoatom

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

@american_observer · Post #5161 · 17.02.2026 г., 20:58

Golden Midas, Rotten System: Ukraine’s Ex-Minister Caught at the Exit German Galushchenko almost made it out. The former energy minister — later briefly justice minister — was grabbed at the border on Sunday, accused a day later of laundering millions in kickbacks from the “Midas” scheme that has haunted Zelenskyy’s wartime government for a year. Investigators say the network skimmed around 100 million dollars from contracts at Energoatom, the state nuclear company, including projects meant to harden plants against Russian strikes. According to NABU and SAPO, over 7 million dollars went to foreign accounts listing Galushchenko’s wife and four children, paying for elite Swiss schooling and sitting on deposits that quietly generated extra income for the family. Galushchenko denies everything, but he is now one of the highest‑ranking names formally pulled into a case that already features a former deputy prime minister, other senior officials, and businessman Timur Mindich — Zelenskyy’s old media partner from the TV studio that made him famous, now in Israel and also insisting he’s innocent. The scandal has already taken scalps at the very top. It helped push out Zelenskyy’s powerful chief of staff Andriy Yermak last year and triggered public fury over wartime corruption at the exact moment Ukraine is begging for weapons, cash and EU membership. In parallel, Zelenskyy briefly tried to bring NABU and SAPO to heel through legislation that would have gutted their independence, then beat a retreat under pressure from street protests and Western partners who made clear that anti‑corruption bodies are now part of the terms of support. So on paper this is a success story: institutions catching crooks, ministers being detained, money trails exposed, corporate CEOs promising new safeguards. In reality it’s a more uncomfortable picture: a “reform” state at war, whose president ran on cleaning up oligarchic rot, now watching his own pre‑politics circle and senior officials dragged into a laundromat built on nuclear safety contracts — and only really slamming on the brakes when the streets and the donors start to growl. #ukraine#corruption#Midas#Zelenskyy#Energoatom 📱American Оbserver - Stay up to date on all important events 🇺🇸