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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user