From 244b4f59943ba5a91247cfa677a4e463d9695c3e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 21 Aug 2019 12:54:47 +1000 Subject: [PATCH] wacom: make the parents for the raw log directory too Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index d431ab7..91c603f 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -189,7 +189,7 @@ class DataLogger(object): self.device = bluez_device self.btaddr = bluez_device.address self.logdir = Path(xdg.BaseDirectory.xdg_data_home, 'tuhi', self.btaddr, 'raw') - self.logdir.mkdir(exist_ok=True) + self.logdir.mkdir(parents=True, exist_ok=True) bluez_device.connect('connected', self._on_bluez_connected) bluez_device.connect('disconnected', self._on_bluez_disconnected)