-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsettings.py
More file actions
31 lines (25 loc) · 711 Bytes
/
settings.py
File metadata and controls
31 lines (25 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
try:
from config import NPROC # type: ignore #noqa
except ImportError:
import multiprocessing
NPROC = int(multiprocessing.cpu_count()) - 2
try:
from config import FLATTER_MODE # type: ignore #noqa
except ImportError:
FLATTER_MODE = 3
try:
from config import FLATTER_HOST_DIR # type: ignore #noqa
except ImportError:
FLATTER_HOST_DIR = "/usr/local/bin"
try:
from config import CACHEDIR # type: ignore #noqa
except ImportError:
CACHEDIR = "cachedir"
try:
from config import MAX_BLOCK_SIZE # type: ignore #noqa
except ImportError:
MAX_BLOCK_SIZE = 60
try:
from config import MAX_REPEATS # type: ignore #noqa
except ImportError:
MAX_REPEATS = 1000**3