import os, time, sys, time
from shutil import copy

watched_file = sys.argv[1]
addon_path = sys.argv[2]

os.startfile(r'C:\Program Files (x86)\Anki\anki.exe')

new_t = old_t = 0
while 1:
	old_t = new_t
	new_t = os.stat(watched_file)[8]
	if old_t != new_t:
		copy(watched_file, addon_path)
		os.system("TASKKILL /F /IM anki.exe")
		os.startfile(r'C:\Program Files (x86)\Anki\anki.exe')

	time.sleep(1);
Add script to automate plugin testing on Windows
Add script to automate plugin testing on Windows

* Opens Anki for you
* Polls every second for a change to the watched file (uses time last modified)
* Restarts Anki automatically
