Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.64 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.64 KB

MT_watchfolder

MT_watchfolder is a Python script that monitors your SDL Trados Studio deliverables for TM/MT provider information. Run it on your file directory to log provider details. Add provider information to your blacklist and raise a warning if a provider has been matched.

Requirements

MT_watchfolder requires watchdog.

pip install watchdog

Check the requirements for more details.

Configuration

  • Open the config.ini file
  • In the directories section:
    • Add at least one path to specify a project directory
    • Optional: Add a filter string to filter for paths containing the string
  • in the blacklist section: This is where you specify names of forbidden providers

Running the script

python watchfolder.py

This will start an Observer instance. If a new deliverable has been created, this event will be passed to the Processor for running the relevant checks.

  • TM and MT providers and their counts will be logged under data/providers.log.
  • If a blacklisted provider has been found, a WARNING.txt file will be created in the delivery folder.

Optional: Testing

In order to run the test_watchfolder.py script successfully you will need to:

  • Install pytest using pip or conda:
pip install pytest
  • Install the project package by installing setup.py in the root directory:
pip install -e .

Questions

Feel free to drop me a line in case of any questions.

flow chart