def getTempPath(file_name=False):
    tmp_path = '/tmp'
    os_name = Tools.getOsName()
    if os_name == 'windows':
        tmp_path = os.environ['tmp']

    tmp_path = os.path.join(tmp_path, 'Deviot')

    if(file_name):
        tmp_path = os.path.join(tmp_path, file_name)

    try:
        os.makedirs(tmp_path)
    except __HOLE__ as exc:
        if exc.errno != errno.EEXIST:
            raise exc
        pass

    return tmp_path
dataset/ETHPy150Open gepd/Deviot/libs/Paths.py/getTempPath