gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
Напиши ТОЛЬКО код на Python и не пиши ` И БЕЗ ТЕКСТА ТОЛЬКО КОД, чтобы D:/ открой…
- User
Напиши ТОЛЬКО код на Python и не пиши ``` И БЕЗ ТЕКСТА ТОЛЬКО КОД, чтобы D:/ открой дискорд и перед этим тебе нужно найти его где то на диске
- Assistant
import os import subprocess
def find_discord_path(): possible_paths = [ "C:\Users\Username\AppData\Local\Discord\app-1.0.900\Discord.exe", "D:\Discord\Discord.exe", # Добавьте другие возможные пути к Discord ]
codefor path in possible_paths: if os.path.exists(path): return path return Nonediscord_path = find_discord_path()
if discord_path: subprocess.Popen(discord_path) else: print("Discord не найден")