From 0d9054e7d393ee1365ffdc8f39e8ee2dad42e7eb Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 21 Dec 2021 16:41:13 +0100 Subject: [PATCH] first try with archive dept. --- screenless/bureau/archives/archives.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screenless/bureau/archives/archives.py b/screenless/bureau/archives/archives.py index 660069e..3b4b1c7 100644 --- a/screenless/bureau/archives/archives.py +++ b/screenless/bureau/archives/archives.py @@ -61,7 +61,8 @@ class Archives(Bureau): def _mount_and_archive(self, dev): # TODO: small print options to import stuff - mountpoint = os.path.join("/media" os.path.split(dev)) + _, dev_base = os.path.split(dev) + mountpoint = os.path.join("/media", dev_base) print("MOUNTING EXTERNAL MEDIUM: ", dev, "on", mountpoint) if len(self.mounts < 26): mount_index = chr(65 + len(self.mounts))