直接上代码:
import importlib
from watchdog.observers import Observer
from watchdog.events import *
class ScriptEventHandler(FileSystemEventHandler):
def __init__(self):
FileSystemEventHandler.__init__(self)
# 文件移动
def on_moved(self, event):
if event.is_director