From 0349b81a10d2937897f30031c4dedb49aa132d8c Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:00:28 +0200 Subject: 'from os' -> 'import os' and so on... --- pyload/webui/app/json.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pyload/webui/app/json.py') 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) -- cgit v1.2.3