Files
Nasal-Interpreter/tools/msvc_move_file.py
2025-10-10 20:30:05 +08:00

13 lines
515 B
Python

import os
import shutil
BUILD_DIR = "build"
if os.path.exists(f"{BUILD_DIR}\\Release\\nasal.exe"):
shutil.move(f"{BUILD_DIR}\\Release\\nasal.exe", ".\\nasal.exe")
if os.path.exists(f"{BUILD_DIR}\\Release\\nasal-format.exe"):
shutil.move(f"{BUILD_DIR}\\Release\\nasal-format.exe", ".\\nasal-format.exe")
for root, dirs, files in os.walk(f"{BUILD_DIR}\\Release"):
for file in files:
if file.endswith(".dll"):
shutil.move(os.path.join(root, file), ".\\module\\lib" + file)