From 65a0eaeac2a0183bd0d7c2421d1602774e5b15be Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 15 May 2019 16:54:45 +0530 Subject: [PATCH] oops --- src/calibre/ptempfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ptempfile.py b/src/calibre/ptempfile.py index 238f1ecb1e..3af84a15ab 100644 --- a/src/calibre/ptempfile.py +++ b/src/calibre/ptempfile.py @@ -6,10 +6,10 @@ Provides platform independent temporary files that persist even after being closed. """ import tempfile, os, atexit -from polyglot.builtins import map +from polyglot.builtins import map, getenv from calibre.constants import (__version__, __appname__, filesystem_encoding, - get_unicode_windows_env_var, iswindows, get_windows_temp_path, isosx, ispy3) + iswindows, get_windows_temp_path, isosx, ispy3) def cleanup(path): @@ -102,7 +102,7 @@ def base_dir(): else: base = os.environ.get('CALIBRE_TEMP_DIR', None) if base is not None and iswindows: - base = get_unicode_windows_env_var('CALIBRE_TEMP_DIR') + base = getenv('CALIBRE_TEMP_DIR') prefix = app_prefix(u'tmp_') if base is None: if iswindows: