summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app/json.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:00:28 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:29 +0200
commit0349b81a10d2937897f30031c4dedb49aa132d8c (patch)
tree3db2827cd64888cc013e064d4e201b8a6ddbc7a9 /pyload/webui/app/json.py
parentMerge pull request #12 from GammaC0de/GammaC0de-fix-api (diff)
downloadpyload-0349b81a10d2937897f30031c4dedb49aa132d8c.tar.xz
'from os' -> 'import os' and so on...
Diffstat (limited to 'pyload/webui/app/json.py')
-rw-r--r--pyload/webui/app/json.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/webui/app/json.py b/pyload/webui/app/json.py
index 400eba624..24952cc34 100644
--- a/pyload/webui/app/json.py
+++ b/pyload/webui/app/json.py
@@ -2,11 +2,10 @@
from __future__ import with_statement
+import os
import shutil
import traceback
-from os.path import join
-
from bottle import route, request, HTTPError
from pyload.utils import decode, formatSize
@@ -166,7 +165,7 @@ def add_package():
if not name or name == "New Package":
name = f.name
- fpath = join(PYLOAD.getConfigValue("general", "download_folder"), "tmp_" + f.filename)
+ fpath = os.path.join(PYLOAD.getConfigValue("general", "download_folder"), "tmp_" + f.filename)
with open(fpath, 'wb') as destination:
shutil.copyfileobj(f.file, destination)
links.insert(0, fpath)