Skip to content

Commit 32da713

Browse files
committed
https://github.com/pliablepixels/pyzm/issues/26 fix mlapi and objectconfig incompatibility
1 parent 6d578af commit 32da713

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mlapi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def post(self):
132132
g.logger.Debug(4, 'Overriding global {} with {}'.format(key, g.monitor_config[mid][key]))
133133
g.config[key] = g.monitor_config[mid][key]
134134

135+
# stupid mlapi and zm_detect config incompatibility
136+
if not g.config.get('image_path') and g.config.get('images_path'):
137+
g.config['image_path'] = g.config['images_path']
135138

136139
# At this stage, polygons has a copy of that monitor polygon set
137140
# g.config has overriden values of config from the mid

0 commit comments

Comments
 (0)