use os.sep
This commit is contained in:
parent
3df71b72b3
commit
2548e2cd77
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue