промежуточный этап. Работает.

This commit is contained in:
2026-08-04 22:54:00 +03:00
parent 4ee7bd3a3d
commit 0fd145df88
10 changed files with 235 additions and 70 deletions
-2
View File
@@ -28,14 +28,12 @@ def run_git_move():
open(init_file, 'w').close()
for filename, dest in file_mapping.items():
# Проверим, где файл может находиться: в корне или уже в папке назначения
if os.path.exists(filename):
src = filename
elif os.path.exists(dest):
print(f"[ℹ️ Уже на месте] {dest}")
continue
else:
# Попробуем поискать файл рекурсивно
found = None
for root, dirs, files in os.walk("."):
if filename in files and "venv" not in root: