Skip to content

Commit

Permalink
[mac] Convert absolute watch path in FSEeventsEmitter with os.path.re…
Browse files Browse the repository at this point in the history
…alpath() (fixes #821) (#822)
  • Loading branch information
NiklasRosenstein committed Jul 28, 2021
1 parent 384dfea commit 426e29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watchdog/observers/fsevents.py
Expand Up @@ -84,7 +84,7 @@ def __init__(self, event_queue, watch, timeout=DEFAULT_EMITTER_TIMEOUT, suppress
self._start_time = 0.0
self._starting_state = None
self._lock = threading.Lock()
self._absolute_watch_path = os.path.abspath(os.path.expanduser(self.watch.path))
self._absolute_watch_path = os.path.realpath(os.path.abspath(os.path.expanduser(self.watch.path)))

def on_thread_stop(self):
_fsevents.remove_watch(self.watch)
Expand Down

0 comments on commit 426e29d

Please sign in to comment.