@WorldNews · Post #74241 · 19.04.2026 г., 22:19
Trump says U.S. struck and seized Iranian-flagged cargo ship in Gulf of Oman [Read FullArticle] @WorldNews#Trump#GulfOfOman#Iran
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
Пребарај: #gulfofoman
@WorldNews · Post #74241 · 19.04.2026 г., 22:19
Trump says U.S. struck and seized Iranian-flagged cargo ship in Gulf of Oman [Read FullArticle] @WorldNews#Trump#GulfOfOman#Iran
Hashtags
@CryptoM · Post #65313 · 12.04.2026 г., 22:02
🚀 CENTCOM to Enforce Blockade on Iranian Maritime Traffic CENTCOM has announced a blockade on all maritime traffic entering and leaving Iranian ports, effective April 13 at 10 a.m. ET. According to NS3.AI, this directive applies to vessels of any flag or ownership within Iranian coastal waters, including ports in the Arabian Gulf and the Gulf of Oman. Ships transiting the Strait of Hormuz to or from non-Iranian ports will maintain freedom of navigation. CENTCOM has not specified the duration of the blockade and stated that further guidance will be provided. #CENTCOM#Iran#Maritime#Blockade#StraitOfHormuz#ArabianGulf#GulfOfOman#NavalOperations
@CryptoM · Post #65429 · 13.04.2026 г., 07:25
🚀 Iranian Military Comments on Persian Gulf and Gulf of Oman Security On the 13th, a spokesperson for Iran's Khatam al-Anbiya Central Command stated that the security of the Persian Gulf and the Gulf of Oman ports is a matter that either belongs to everyone or no one. According to Odaily, analysts suggest that this statement from the Iranian military is a response to recent U.S. remarks about blocking Iranian port vessels and resuming actions against Iran. #IranianMilitary#PersianGulf#GulfOfOman#Security#Iran#USRelations#MilitaryStatement#PortSecurity