Skip to content

Commit adfb053

Browse files
committed
Watch multiple files in the same directory
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 9cc8889 commit adfb053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/curtsiesfrontend/filewatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _add_module(self, path):
3838
dirname = os.path.dirname(path)
3939
if dirname not in self.dirs:
4040
self.observer.schedule(self, dirname, recursive=False)
41-
self.dirs[os.path.dirname(path)].add(path)
41+
self.dirs[dirname].add(path)
4242

4343
def _add_module_later(self, path):
4444
self.modules_to_add_later.append(path)

0 commit comments

Comments
 (0)