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

Резултати

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

Пребарај: #scammers

当前筛选 #scammers清除筛选
TONlines – News

@tonlines · Post #6994 · 30.04.2025 г., 16:58

⚡️JetTon Alerts: Beware of Scammers! #JetTon#scammers JetTon Games RU warns users about impostors pretending to be JetTon employees. These scammers falsely promise benefits such as doubling deposits and providing platform access for a fee. JetTon emphasizes that official employees never reach out first and access to their services is free. Source: link @tonlines

☎️ Phoneword

@Morgan · Post #309 · 02.10.2023 г., 05:06

💠Important to detect #Scammers When you open the profile, keep your finger on the small photo, like Telegram x, the pictures of the side will be shown with the upload date. One of the most important things to identify a fraudster is the upload date of his photos. If you see 10 photos uploaded in a day or two, you know that the new account is a scammer. Because the fraudster can't scam a one-year account and then get blocked with 4 reports... This is a simple and very important way to detect scammers. 💠#Scammer 7⃣2⃣2⃣6⃣6⃣3⃣7⃣ 👇 🌐en.wikipedia.org/wiki/Phoneword 📡@Phoneword

TONlines – News

@tonlines · Post #7167 · 12.05.2025 г., 10:57

Tonnel Network Warns Against Buying B-Day Candle #scammers#B-DayCandle Tonnel Network advises against purchasing the B-Day Candle, as issues are escalating daily. Previously, scammers have exploited refund methods, making it crucial for buyers to remain cautious. Source: link @tonlines

Hashtags

International News

@intnewsagency · Post #9385 · 26.04.2026 г., 15:36

Beware of Scammers Posing as Moscow Clinic Staff The Moscow Department of Health warns about scammers calling as clinic employees, asking for passport details, SNILS, and SMS codes. Officials emphasize that clinic staff never request such information. Sharing these details can lead to hacking of your Gosuslugi account. Stay vigilant and never disclose personal data to strangers. #Moscow#Scammers#Health#Safety The main news of Russia and the world ishere.

Venture Village Wall 🦄

@venturevillagewall · Post #3853 · 12.01.2025 г., 04:00

Whale Alerts and Hacked Accounts Update A study by Presto Research shows that large exchange deposits have weak predictive power for price declines, while VC and MM deposits offer slightly better, yet still limited, effectiveness as trading signals. In related news, Foresight Ventures’ X account was hacked, spreading fake AI crypto news, following a similar incident with Litecoin’s account promoting fraudulent tokens. Additionally, the newly launched AICC has reached a market cap of over $130 million, but faces scrutiny over its lack of transparency. Also, Morpho markets have capped positions eligible for migration with deprecated rewards for old markets. Presto ResearchAICC DashboardUsual Update #WhaleAlerts#Crypto#AI#Litecoin#ForesightVentures#AICC#MarketCap#TradingSignals#MorphoMarkets#Security#Hacking#Transparency#DeFi#MM#VC#Blockchain#DAOs#Scammers#Influencers