1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-01-06 19:44:12 +01:00

Removing polyglot getcwd and getenv

This commit is contained in:
2020-04-20 20:33:25 +02:00
parent c867f0321b
commit 3ca3f08054
29 changed files with 89 additions and 99 deletions

View File

@@ -5,7 +5,6 @@ Provides platform independent temporary files that persist even after
being closed.
"""
import tempfile, os, atexit
from ebook_converter.polyglot.builtins import getenv
from ebook_converter.constants import (__version__, __appname__, filesystem_encoding,
iswindows, get_windows_temp_path, isosx, ispy3)
@@ -101,7 +100,7 @@ def base_dir():
else:
base = os.environ.get('CALIBRE_TEMP_DIR', None)
if base is not None and iswindows:
base = getenv('CALIBRE_TEMP_DIR')
base = os.getenv('CALIBRE_TEMP_DIR')
prefix = app_prefix('tmp_')
if base is None:
if iswindows: