-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigHandler.conf
More file actions
executable file
·98 lines (92 loc) · 3.37 KB
/
Copy pathConfigHandler.conf
File metadata and controls
executable file
·98 lines (92 loc) · 3.37 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# ---------------------------------------------------------------------
# Class configuration file
# ---------------------------------------------------------------------
#######################################################################
# THIS FILE SHOULD ONLY BE USED TO SET SIMPLE CONFIGURATION VALUES.
# NOT AS A REPLACEMENT FOR SETTING VARIABLES PROPERLY WITHIN A CLASS!!
#
# THE PARAMETERS SET BY CONFIGHANDLER USING THIS FILE ARE SET DIRECTLY
# IN THE CALLING CLASS'S "self". PLEASE BE AWARE WHEN CREATING THIS
# CONFIG FILE
#######################################################################
#
# I.e. The line "option = 1" in this file creates
# "callingobject.self.option = 1"
# AND
# "callingobject.self._config.option = 1".
#
# class some_python_class(object):
# def __init__(self):
# ConfigHandler(self, config_file = "/dir/dir/file.conf")
#
# print self.option
# 1
#
# print self._config.option
# 1
#
# SECTIONS:
# Each [SECTION] defines a specific set of option-value pairs. The
# SECTION name is userspace and arbitrary.
#
# OPTIONS:
# option=value
# Each option within a section will create a variable BY THE SAME
# NAME AS THE 'OPTION' in the instantiated ConfigHandler OBJECT with
# its value set to "value".
# I.e.
# "name=Hydrogen" creates a variable called "self.name" in the
# ConfigHandler object with the value of "Hydrogen".
# This is the same as if the line of code 'self.name = str("Hydrogen")'
# had been written directly into the calling objects code.
#
# Caveats:
# - Spaces after the "=" are ignored.
#
# - ALL VALUES ARE A STRING...so they MAY have to be converted for
# use. At instantiation, ConfigHandler attempts to convert floats,
# integers and boolean - but be prepared to check for this.
#
# - Numbers will be returned as floats or int...never bools.
#
# - Quotes around values will be returned as part of the string.
#
#
# FORMAT:
# [section_name]
# option=value
#
# - Lines starting with "#" are ignored.
#
# - Lines with "#" AFTER DATA ARE *NOT* IGNORED.
# I.e. name=Hydrogen # This comment will be included in name's value
#
# - Do NOT use quotes for text values.
# ---------------------------------------------------------------------
###############################################################################
[LOGGING]
logfile = MRATrefactor.log
log_path = /shared/GitHub/Tesera/MRAT_Refactor/log/
app_name = MRATrefactor
log_level = 10
screendump = True
create_paths = False
###############################################################################
[CORE]
# Eventually rejigger ConfigHandler to assemble the paths automagically,
# For now just use full paths in all
root_dir = /shared/GitHub/Tesera/MRAT_Refactor/
conf_dir = /shared/GitHub/Tesera/MRAT_Refactoretc/
etc_dir = /shared/GitHub/Tesera/MRAT_Refactoretc/
log_dir = /shared/GitHub/Tesera/MRAT_Refactorlog/
bin_dir = /shared/GitHub/Tesera/MRAT_Refactorbin/
lib_dir = /shared/GitHub/Tesera/MRAT_Refactorlib/
share_dir = /shared/GitHub/Tesera/MRAT_Refactorshare/
Rwd = /shared/GitHub/Tesera/MRAT_RefactorRwd/
[RSERVE_HANDLER]
host = localhost
port = 6311
atomicArray = True
arrayOrder = C
defaultVoid = False
oobCallback = None