title: Watchdog generates duplicated FileModifiedEvent inside Spyder IDE
body: <p>When I run the following script inside Spyder IDE, watchdog fires two <code>FileModifiedEvent</code>, instead of one, whenever a file inside the monitored folder is modified. It doesn't matter if the script is run through iPython or inside a regular console. The problem doesn't occur when the script is executed from a command prompt, thus the problem must be related to Spyder.</p>
  
  <pre><code>from watchdog.observers import Observer
  from watchdog.events import FileSystemEventHandler
  
  monitored_folder = 'D:\\Users\\myuser\\Desktop\\test'
  
  class FolderMonitor(FileSystemEventHandler):
      def on_any_event(self, event):
          print(event)
  
  observer = Observer()
  observer.schedule(FolderMonitor(), monitored_folder)    
  observer.start()
  try:
      while True:
          import time
          time.sleep(1)
  except KeyboardInterrupt:
      observer.stop()
  observer.join()
  </code></pre>
  
  <p>Inside spyder, the output is:</p>
  
  <pre><code>&lt;FileModifiedEvent: src_path='D:\\Users\\myuser\\Desktop\\test\\test.txt'&gt;
  &lt;FileModifiedEvent: src_path='D:\\Users\\myuser\\Desktop\\test\\test.txt'&gt;
  </code></pre>
  
  <p>Through a command prompt, the output is:</p>
  
  <pre><code>&lt;FileModifiedEvent: src_path='D:\\Users\\camposb\\Desktop\\test\\test.txt'&gt;
  </code></pre>
  
  <p>The code is being executed in Windows 7 with Python 3.5.1 and Spyder 2.3.8.</p>