Skip to content

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. πŸ”„

Notifications You must be signed in to change notification settings

swas02/watch-QCAD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– README: Automatic QCAD Script Executor

Overview

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. πŸ”„

Features

  • πŸ“‚ Monitors changes to a specified JavaScript file.
  • βš™οΈ Automatically re-executes QCAD with the updated script upon file modification.

1. Prerequisites:

  • 🐍 Python 3.x
  • πŸ“¦ watchdog library (for file system monitoring)
  • πŸ–₯️ QCAD installed and its executable path known

2. Setup:

  • Download Watch-Qcad.py for QCAD automation.

3. Install Required Libraries:

  • Open terminal and install watchdog:
    pip install watchdog

4. Configuration:

  • Edit Watch-Qcad.py:
    • Set QCAD executable path:
      LOCATION_OF_QCAD_exe = "E:\\Program Files\\QCAD\\qcad.exe"

5. Usage:

  • Run script in terminal:
    python Watch-Qcad.py
  • Enter JavaScript file path when prompted.

6. Execution:

  • Monitors changes in JavaScript file.
  • If QCAD doesn't launch automatically, start QCAD manually to apply changes. πŸ”„βš™οΈ

7. Stopping:

  • Exit script with Ctrl + C.

8. Developer Info:

Notes:

  • Ensure paths are correct and accessible.
  • Customize Watch-Qcad.py for specific needs.
  • Contact developer for issues or updates.

About

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. πŸ”„

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published