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.
MT_watchfolder requires watchdog.
pip install watchdog
Check the requirements for more details.
- 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
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.
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 .
Feel free to drop me a line in case of any questions.