Windowsのフォルダを監視して、更新があったら取り込む。 というよくある処理。これを簡単にしたいなと思った。 Windowsのフォルダ監視は.NetFrameworkが楽ちん .NetFrameworkが恐ろしくシンプルで簡単です。 from System.IO import * path = "C:\\Users\\takuya\\Desktop" fsw = FileSystemWatcher() fsw.Path = path def watcherhandler(self,*args): print args fsw.Changed += watcherhandler fsw.Created += watcherhandler fsw.Deleted += watcherhandler fsw.Renamed += watcherhandler fsw.EnableRaisin