-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.py
74 lines (55 loc) · 3 KB
/
settings.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
########################################################################
# #
# Cyprium is a multifunction cryptographic, steganographic and #
# cryptanalysis tool developped by members of The Hackademy. #
# French White Hat Hackers Community! #
# cyprium.hackademics.fr # #
# Authors: SAKAROV, mont29, afranck64 #
# Contact: [email protected] #
# Forum: hackademics.fr #
# Twitter: @hackademics_ #
# #
# Cyprium is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published #
# by the Free Software Foundation, either version 3 of the License, #
# or any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but without any warranty; without even the implied warranty of #
# merchantability or fitness for a particular purpose. See the #
# GNU General Public License for more details. #
# #
# The terms of the GNU General Public License is detailed in the #
# COPYING attached file. If not, see : http://www.gnu.org/licenses #
# #
########################################################################
import os
# The path to cyprium!
ROOT_DIR = os.path.dirname(__file__)
###############################################################################
### kernel.
## Dics.
# The path for zip archive containing language dics to use.
HUNSPELL_ZIP_DICS = os.path.join(ROOT_DIR, "kernel", "dics.zip")
## Cache settings.
# Use disk cache to save processed versions of heavy data which creation is
# CPU-intensive.
# Used e.g. by language-words code (hunspell.py and matchdic.py).
# Warning: these files will take quite some room (currently ~60Mo).
CCH_USE = True
# Where to store cache files.
CCH_BASE_DIR = os.path.join(ROOT_DIR, ".cache")
# Maximum size of cache, in Mo.
CCH_MAX_SIZE = 256
# Hash algo to use as cache id.
CCH_HASH_TYPE = "sha512"
###############################################################################
### UI.
# The pause between each draw of splash info, at launch time (in ms).
UI_SPLASH_DELAY = 1000
###############################################################################
# Override with custom user settings, if available.
try:
from user_settings import *
except ImportError: # If no user_settings available, it’s no error!
pass