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

Резултати

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

Пребарај: #trademark

当前筛选 #trademark清除筛选
AI & Law

@ai_and_law · Post #247 · 23.02.2024 г., 08:04

OpenAI's Trademark Application for 'GPT' Denied Greetings everybody! The US Patent and Trademark Office (PTO) has rejected OpenAI's bid to trademark the term 'GPT' (generative pre-trained transformer), citing its generic nature. According to the PTO, granting the trademark could impede competitors from accurately describing their products as GPT. OpenAI argued that 'GPT' isn't merely descriptive and doesn't immediately convey its meaning to consumers. However, the PTO emphasized that those familiar with the technology understand 'GPT' as a general type of software, not exclusive to OpenAI products. The decision marks a setback for OpenAI, whose association with 'GPT' grew significantly with the popularity of ChatGPT and its subsequent AI models. Despite previous denials, OpenAI may appeal to the Trademark Trial and Appeal Board for another chance to secure the trademark. #OpenAI#GPT#Trademark#USPTO#AI

Venture Village Wall 🦄

@venturevillagewall · Post #4240 · 25.02.2025 г., 13:00

Court Approves Name Change for GigAnt The startup GigAnt, previously led by Denis Reshanov, has lost its name due to legal proceedings initiated by a different company with a similar name. The court ruled against GigAnt's usage of the name due to trademark similarities with a firm producing computer equipment, leading to a required payment of 5 million rubles. GigAnt has since rebranded to GigWork. The legal dispute lasted nearly eight months, despite both companies operating in different sectors. More details here. #GigAnt#Trademark#Legal#Corporate#Rebranding#GigWork