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

Пребарај: #futureofrussia

当前筛选 #futureofrussia清除筛选
ART UNITES THE WORLD

@artunitesworld · Post #166 · 05.03.2026 г., 14:50

🖼 NFT + Physical Art - One of the Key Trends of 2026 The digital asset market is evolving rapidly. Just a few years ago, NFTs were primarily associated with digital images. Today, however, a new ownership model is emerging - a hybrid of physical art and blockchain technology. In 2026, this trend is accelerating: collectors, artists, and technology ecosystems are combining classical artworks with NFT passports secured on the blockchain. 🫥 What does this change? 🔹 Authenticity - a digital certificate verifies authorship and provenance. 🔹 Transparency - ownership history is recorded and cannot be altered. 🔹 Security - significantly reduces the risk of counterfeiting. 🔹 Liquidity - the asset can be integrated into the digital environment and participate in Web3 tools. 🔹 A new ownership model - a physical object receives a unique digital identifier. 🧬 In essence, we are witnessing the emergence of a new asset class: Art + Blockchain = a hybrid form of value. This is no longer an experiment or the NFT hype wave of 2021. It represents a more mature phase of market development - where technology enhances traditional art rather than replacing it. 🌍 Global practice shows that digital asset identification is becoming the standard. Art is one of the first sectors where this transformation is especially logical. To better understand how art meets blockchain, we invite you to explore DigitalExchange.art 🚀 Within the MirraCoin ecosystem, we are not only closely following this direction - we are actively building blockchain integrations, because the future of the digital economy is being shaped by exactly these hybrid solutions. 🚀 The future of assets is not “digital instead of physical.” 🚀 The future is synergy. • Physical value. • Digital protection. • Transparent history. • Web3 integration. 🇷🇺 In Russia, this global trend is only beginning to scale - together with the MirraCoin.io ecosystem 😎 #MirraCoin#MIRRC#NFT#DigitalExchangeArt#Blockchain#Web3#Art#Cryptocurrency#FutureOfRussia#CryptoNews#MadeInRussia @MirraChannel😎