From 4ba1c603e133f6f0cca26e1ba7c521437c32517d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 11 Oct 2020 13:41:54 +0200 Subject: [PATCH] Drop specific variable for command --- dropship/dropship.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dropship/dropship.py b/dropship/dropship.py index 3568e8c..da3aa44 100644 --- a/dropship/dropship.py +++ b/dropship/dropship.py @@ -142,9 +142,8 @@ class DropShip: async def wormhole_send(self, fpath): """Run `wormhole send` on a local file path.""" - command = ["wormhole", "send", fpath] - process = await open_process(command, stderr=PIPE) self._send_spinner_on() + process = await open_process(["wormhole", "send", fpath], stderr=PIPE) output = await process.stderr.receive_some() self.transfer_code = output.decode().split()[-1] self.clipboard.set_text(self.transfer_code, -1)