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)
|
||||
file = File.get(id)
|
||||
if not file:
|
||||
prefix_books = os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books/')
|
||||
prefix_imported = os.path.join(prefix_books, '.import/')
|
||||
prefix_books = os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books' + os.sep)
|
||||
prefix_imported = os.path.join(prefix_books, '.import' + os.sep)
|
||||
ox.makedirs(prefix_imported)
|
||||
import_name = os.path.join(prefix_imported, filename)
|
||||
n = 1
|
||||
|
|
Loading…
Reference in a new issue