From c6384b3b652b6e32d4359d0c30a711ff19de755d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 25 Sep 2019 16:02:35 +0200 Subject: [PATCH] Expand rawrgb_path to support relative paths and user prefix --- platypush/plugins/camera/ir/mlx90640/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/camera/ir/mlx90640/__init__.py b/platypush/plugins/camera/ir/mlx90640/__init__.py index 1b6d050d..fcbc84f9 100644 --- a/platypush/plugins/camera/ir/mlx90640/__init__.py +++ b/platypush/plugins/camera/ir/mlx90640/__init__.py @@ -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