This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import base64 | |
| import os | |
| import sys | |
| def save_images_from_md(md_file_path, output_dir): | |
| # Переконайтеся, що вихідна директорія існує | |
| os.makedirs(output_dir, exist_ok=True) | |
| # Читання вмісту MD файлу | |
| with open(md_file_path, 'r', encoding='utf-8') as file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # хоч і працює, але повільно і згодом ядро крашиться | |
| import os | |
| import subprocess | |
| import sys | |
| import json | |
| import ctypes | |
| # ---------------- Перевірка на адміністратора ---------------- | |
| def is_admin(): |