kopia lustrzana https://github.com/projecthorus/chasemapper
Added code to read in new config file data
rodzic
e51b7d0199
commit
62342d7fca
|
@ -138,6 +138,28 @@ def parse_config_file(filename):
|
|||
chase_config['selected_profile'] = ""
|
||||
chase_config['profiles'] = {}
|
||||
|
||||
|
||||
# Unit Selection
|
||||
|
||||
chase_config['unitselection'] = config.get('units', 'unitselection')
|
||||
chase_config['m_to_ft'] = config.get('units', 'm_to_ft')
|
||||
chase_config['km_to_miles'] = config.get('units', 'km_to_miles')
|
||||
chase_config['secs_to_mins'] = config.get('units', 'secs_to_mins')
|
||||
chase_config['ms_to_knots'] = config.get('units', 'ms_to_knots')
|
||||
chase_config['switch_miles_feet'] = config.get('units', 'switch_miles_feet')
|
||||
|
||||
logging.info("Units: " + chase_config['unitselection'])
|
||||
logging.info("m_to_f: " + chase_config['m_to_ft'])
|
||||
logging.info("km_to_miles: " + chase_config['km_to_miles'])
|
||||
logging.info("secs_to_mins: " + chase_config['secs_to_mins'])
|
||||
logging.info("ms_to_knots: " + chase_config['ms_to_knots'])
|
||||
logging.info("switch_miles_feet: " + chase_config['switch_miles_feet'] + " metres")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for i in range(1,_profile_count+1):
|
||||
_profile_section = "profile_%d" % i
|
||||
try:
|
||||
|
|
Ładowanie…
Reference in New Issue