Fix linux utf8 path free space query

This commit is contained in:
shortcutme 2017-01-23 12:55:03 +01:00
parent 802b6775d7
commit 6c9f709290
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -52,7 +52,7 @@ def openLocked(path, mode="w"):
def getFreeSpace():
free_space = -1
if "statvfs" in dir(os): # Unix
statvfs = os.statvfs(config.data_dir)
statvfs = os.statvfs(config.data_dir.encode("utf8"))
free_space = statvfs.f_frsize * statvfs.f_bavail
else: # Windows
try: