Skip to content

Commit

Permalink
[BUG] Fixed inotify realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Delle Cave committed Aug 21, 2018
1 parent be06bdb commit 21d79b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dwho/classes/inoplugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def realdstpath(self, event, filepath, prefix = None):
cfg = self.config['inotify']['paths'][self.cfg_path.path]

if cfg.get('dst') and filepath.startswith(self.cfg_path.path):
r = os.path.join(cfg['dst'], filepath[len(self.cfg_path.path):])
r = os.path.join(cfg['dst'], filepath[len(self.cfg_path.path):].lstrip(os.path.sep))

if not prefix:
return r
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import find_packages, setup

requirements = [line.strip() for line in open('requirements.txt', 'r').readlines()]
version = '0.2.29'
version = '0.2.30'

if os.path.isfile('VERSION'):
version = open('VERSION', 'r').readline().strip() or version
Expand Down

0 comments on commit 21d79b5

Please sign in to comment.