Drop specific variable for command
This commit is contained in:
parent
ba8d2ebd41
commit
4ba1c603e1
@ -142,9 +142,8 @@ class DropShip:
|
|||||||
|
|
||||||
async def wormhole_send(self, fpath):
|
async def wormhole_send(self, fpath):
|
||||||
"""Run `wormhole send` on a local file path."""
|
"""Run `wormhole send` on a local file path."""
|
||||||
command = ["wormhole", "send", fpath]
|
|
||||||
process = await open_process(command, stderr=PIPE)
|
|
||||||
self._send_spinner_on()
|
self._send_spinner_on()
|
||||||
|
process = await open_process(["wormhole", "send", fpath], stderr=PIPE)
|
||||||
output = await process.stderr.receive_some()
|
output = await process.stderr.receive_some()
|
||||||
self.transfer_code = output.decode().split()[-1]
|
self.transfer_code = output.decode().split()[-1]
|
||||||
self.clipboard.set_text(self.transfer_code, -1)
|
self.clipboard.set_text(self.transfer_code, -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user