QCAD File Watcher is a Python script that monitors changes to a specified JavaScript file and automatically re-executes a QCAD executable with the updated script. This can be particularly useful for developers working on QCAD scripts, as it streamlines the testing process by automatically applying changes without manual intervention. π
- π Monitors changes to a specified JavaScript file.
- βοΈ Automatically re-executes QCAD with the updated script upon file modification.
- π Python 3.x
- π¦
watchdog
library (for file system monitoring) - π₯οΈ QCAD installed and its executable path known
- Download
Watch-Qcad.py
for QCAD automation.
- Open terminal and install
watchdog
:pip install watchdog
- Edit
Watch-Qcad.py
:- Set QCAD executable path:
LOCATION_OF_QCAD_exe = "E:\\Program Files\\QCAD\\qcad.exe"
- Run script in terminal:
python Watch-Qcad.py
- Enter JavaScript file path when prompted.
- Monitors changes in JavaScript file.
- If QCAD doesn't launch automatically, start QCAD manually to apply changes. πβοΈ
- Exit script with
Ctrl + C
.
- Version: 1.5.0 π
- Developer: Swastik Gupta π¨βπ»
- GitHub: https://github.com/swas02
- Ensure paths are correct and accessible.
- Customize
Watch-Qcad.py
for specific needs. - Contact developer for issues or updates.