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

Резултати

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

Пребарај: #wyckoff

当前筛选 #wyckoff清除筛选
SIGNAL

@finsignal · Post #3628 · 22.10.2024 г., 09:27

🗓 A few notes about the market from analysts: 🟠 .Bitcoin retesting is in full swing right now. BTC is penetrating deeper into the old resistance area (red) to turn it into new support (green). → May drop to the top of the channel (black). → Successful retesting here -> resumption of growth. 🟠 .Bitcoin #Wyckoff on October 21st. 🟠 .Bitcoin vs Gold on October 21st. 🟠 .It is no coincidence that the BTC/IWM/QQQ ratio rejects a wedge breakout, while bitcoin shows a downward trend. The wedge should determine the direction by November 11th. 📝 $BTC price: 68,000 USD - the price is above all key levels of the STH Realized Price, which means that short-term investors, even those who bought BTC 155 days ago, are in profit. The key support levels are the values of the STH Realized Price: • 1H-1M: 62,638 USD • 1M-3M: 60,839 USD • 3M-6M: 64,144 USD

Hashtags

Venture Village Wall 🦄

@venturevillagewall · Post #3989 · 26.01.2025 г., 10:00

Bitcoin Nears Last Growth Phase Bitcoin approaches final growth stage per the Wyckoff method, analyst Ali Martinez notes a potential peak at $200,000. More details on the Wyckoff method and trading here: applied trading. Paradigm calls for Ethereum to focus on scaling and aims for at least one major update yearly without changing gas limits. #Bitcoin#Wyckoff#Crypto#Ethereum#Paradigm#DeFi#VC