improved get_base_directory

pull/13/head
Mike Fährmann 9 years ago
parent 1497da07de
commit 1146ed95dc
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -8,6 +8,7 @@
import os
import sys
import tempfile
from . import config, extractor, downloader, text
from .extractor.message import Message
@ -109,7 +110,8 @@ class DownloadJob():
@staticmethod
def get_base_directory():
"""Return the base-destination-directory for downloads"""
return config.get(("base-directory",), default="/tmp/")
bdir = config.get(("base-directory",), default=tempfile.gettempdir())
return os.path.expanduser(bdir)
@staticmethod
def print_start(path):

Loading…
Cancel
Save