Drop Path usage

This commit is contained in:
Luke Murphy 2020-07-27 14:22:48 +02:00
parent c313126fdc
commit 71cd34a99b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -2,7 +2,6 @@
import logging import logging
import os import os
from pathlib import Path
from signal import SIGINT, SIGTERM from signal import SIGINT, SIGTERM
from subprocess import PIPE, Popen, TimeoutExpired from subprocess import PIPE, Popen, TimeoutExpired
@ -109,8 +108,7 @@ class DropShip:
files = data.get_uris() files = data.get_uris()
self.files_to_send = files self.files_to_send = files
if len(files) == 1: if len(files) == 1:
fpath = str(Path(files[0].replace("file://", ""))) fpath = files[0].replace("file://", "")
print(fpath, type(fpath))
self.wormhole_send(self, fpath) self.wormhole_send(self, fpath)
self.drop_label.set_text("Sending..") self.drop_label.set_text("Sending..")
self.drop_spinner.start() self.drop_spinner.start()