diff --git a/dedupsqlfs/__init__.py b/dedupsqlfs/__init__.py index c0ea6f05..8695b221 100644 --- a/dedupsqlfs/__init__.py +++ b/dedupsqlfs/__init__.py @@ -26,7 +26,7 @@ __fsname__ = "dedupsqlfs" __fsversion__ = "3.1" # Future 1.3 -__version__ = "1.2.919" +__version__ = "1.2.920" # Check the Python version, warn the user if untested. import sys diff --git a/dedupsqlfs/fuse/dedupfs.py b/dedupsqlfs/fuse/dedupfs.py index 0877a223..167b366b 100644 --- a/dedupsqlfs/fuse/dedupfs.py +++ b/dedupsqlfs/fuse/dedupfs.py @@ -102,7 +102,13 @@ def startCacheFlusher(self): if not self.getOption('use_cache_flusher'): return - cf_path = os.path.join(os.path.dirname(sys.argv[0]), 'cache_flusher') + # Find real program path + # Cache flusher may be not installed with "common" programs + mf_path = sys.argv[0] + while os.path.islink(mf_path): + mf_path = os.path.abspath(os.readlink(mf_path)) + + cf_path = os.path.join(os.path.dirname(mf_path), 'cache_flusher') if not os.path.isfile(cf_path): self.getLogger().warning("Can't find cache flushing helper! By path: %r" % cf_path) return