Expand rawrgb_path to support relative paths and user prefix

This commit is contained in:
Fabio Manganiello 2019-09-25 16:02:35 +02:00
parent 755c8b52ec
commit c6384b3b65
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class CameraIrMlx90640Plugin(Plugin):
if not rawrgb_path:
rawrgb_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib', 'examples', 'rawrgb')
rawrgb_path = os.path.abspath(os.path.expanduser(rawrgb_path))
assert fps > 0
assert skip_frames >= 0