From 9df6413df57604d5f95a14557d143fbdc20d3155 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Feb 2012 10:22:54 +0530 Subject: [PATCH] Fix regression in 0.8.41 that broke calibre if the TMP or TEMP environment variable is set to the root of a drive. --- src/calibre/constants.py | 2 -- 1 file changed, 2 deletions(-) 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