load presets from config file
This commit is contained in:
parent
be3d4841cb
commit
9c8477b755
|
@ -47,7 +47,8 @@ logger.addHandler(ch) # add console log handler
|
|||
# load configuration
|
||||
config = configparser.ConfigParser(allow_no_value=True)
|
||||
config.read('robot.cfg') # open config file
|
||||
r.config = config['robot'] # section of config file
|
||||
r.config = config['robot'] # robot section of config file
|
||||
r.preset = config['presets'] # presets section of config file
|
||||
r.start() # open port, start read thread
|
||||
|
||||
script = ArmCtlListener(r)
|
||||
|
|
Loading…
Reference in New Issue