new param system

This commit is contained in:
Benoît Sierro
2021-06-10 12:49:09 +02:00
parent 4a401a5771
commit 74cb057dbe
23 changed files with 1257 additions and 1488 deletions

View File

@@ -1,11 +1,10 @@
import os
from pathlib import Path
from typing import Dict, Literal, Optional, Set
from .const import ENVIRON_KEY_BASE, PBAR_POLICY, LOG_POLICY, TMP_FOLDER_KEY_BASE
from .const import ENVIRON_KEY_BASE, LOG_POLICY, PBAR_POLICY, TMP_FOLDER_KEY_BASE
def data_folder(task_id: int) -> Optional[Path]:
def data_folder(task_id: int) -> Optional[str]:
idstr = str(int(task_id))
tmp = os.getenv(TMP_FOLDER_KEY_BASE + idstr)
return tmp