Fix #194: ismount() fails on symlinks

This commit is contained in:
Oliver Smith 2017-07-14 07:05:45 +02:00
parent 63aa1eae1b
commit 50d23e2fd5
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def ismount(folder):
Ismount() implementation, that works for mount --bind.
Workaround for: https://bugs.python.org/issue29707
"""
folder = os.path.abspath(folder)
folder = os.path.abspath(os.path.realpath(folder))
with open("/proc/mounts", "r") as handle:
for line in handle:
words = line.split()