use os.sep

This commit is contained in:
j 2016-01-20 12:49:19 +05:30
parent 3df71b72b3
commit 2548e2cd77

View file

@ -172,8 +172,8 @@ class UploadHandler(tornado.web.RequestHandler):
ids.append(id) ids.append(id)
file = File.get(id) file = File.get(id)
if not file: if not file:
prefix_books = os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books/') prefix_books = os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books' + os.sep)
prefix_imported = os.path.join(prefix_books, '.import/') prefix_imported = os.path.join(prefix_books, '.import' + os.sep)
ox.makedirs(prefix_imported) ox.makedirs(prefix_imported)
import_name = os.path.join(prefix_imported, filename) import_name = os.path.join(prefix_imported, filename)
n = 1 n = 1