wacom: log the raw yaml data into a subdirectory
It gets a bit too confusing otherwise with all the weirdly named files around Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6bf7715e83
commit
35acce3ea6
|
@ -188,7 +188,7 @@ class DataLogger(object):
|
||||||
self.logger = logging.getLogger('tuhi.fw')
|
self.logger = logging.getLogger('tuhi.fw')
|
||||||
self.device = bluez_device
|
self.device = bluez_device
|
||||||
self.btaddr = bluez_device.address
|
self.btaddr = bluez_device.address
|
||||||
self.logdir = os.path.join(xdg.BaseDirectory.xdg_data_home, 'tuhi', self.btaddr)
|
self.logdir = os.path.join(xdg.BaseDirectory.xdg_data_home, 'tuhi', self.btaddr, 'raw')
|
||||||
os.makedirs(self.logdir, exist_ok=True)
|
os.makedirs(self.logdir, exist_ok=True)
|
||||||
|
|
||||||
bluez_device.connect('connected', self._on_bluez_connected)
|
bluez_device.connect('connected', self._on_bluez_connected)
|
||||||
|
|
Loading…
Reference in New Issue