Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12297517
config.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
681 B
Referenced Files
None
Subscribers
None
config.py
View Options
# -------------------------------------------------------------
# Rhyne-Wise :: Config
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Parse YAML configuration
# License: BSD-2-Clause
# -------------------------------------------------------------
import
yaml
DEFAULT_CONFIG_PATH
=
"conf/rhyne-wyse.yaml"
DEFAULT_HASHES_PATH
=
"/var/db/rhyne-wyse/hashes"
def
get_config_path
():
return
DEFAULT_CONFIG_PATH
def
get_config
():
with
open
(
get_config_path
())
as
config_file
:
return
yaml
.
load
(
config_file
,
Loader
=
yaml
.
Loader
)
def
get_hashes_path
():
return
DEFAULT_HASHES_PATH
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Wed, Oct 22, 12:16 (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3092111
Default Alt Text
config.py (681 B)
Attached To
Mode
rRPRT Nasqueron internal reports
Attached
Detach File
Event Timeline
Log In to Comment