from pathlib import Path


def get_temp_path(filename):
    """
    Get path for temp file with filename
    """
    home_path = Path.home()
    temp_path = home_path.joinpath('.vntrader')

    if not temp_path.exists():
        temp_path.mkdir()
    return temp_path.joinpath(filename)