diff --git a/src/calibre/constants.py b/src/calibre/constants.py index 6943e964e4..42f26ea466 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -199,7 +199,5 @@ def get_windows_temp_path(): buf = ctypes.create_unicode_buffer(u'\0'*n) ctypes.windll.kernel32.GetTempPathW(n, buf) ans = buf.value - if ans[-1] == u'\\': - ans = ans[:-1] return ans if ans else None