File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,9 @@ def _manage_reloader(cls, enable):
7171 def ensure_path ():
7272 """Ensures the current folder is in the system path."""
7373 # Not sure why we need to import sys inside this method but GH complains otherwise
74- # import sys
7574 import scriptcontext
7675
7776 # First ensure the current folder is in the system path
78- #filepath = self.ghenv.Component.OnPingDocument().FilePath
7977 filepath = scriptcontext .doc .Component .OnPingDocument ().FilePath
8078
8179 if not filepath :
@@ -103,7 +101,7 @@ def start_watcher(self):
103101 # Setup file system watcher on python files
104102 self .watcher = FileSystemWatcher ()
105103 self .watcher .Path = dirname
106- self .watcher .NotifyFilter = NotifyFilters .LastWrite #| NotifyFilters.FileName | NotifyFilters.Size
104+ self .watcher .NotifyFilter = NotifyFilters .LastWrite
107105 self .watcher .IncludeSubdirectories = False
108106 self .watcher .Filter = "*.py"
109107 self .watcher .Changed += self .on_changed
You can’t perform that action at this time.
0 commit comments