mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:14:31 +02:00
oops
This commit is contained in:
parent
2896bb3571
commit
65a0eaeac2
1 changed files with 3 additions and 3 deletions
|
|
@ -6,10 +6,10 @@
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue