From 583380e71abb8de69ba5a57825023a7075bd6bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=AA=8E?= Date: Wed, 1 Mar 2017 17:20:58 +0800 Subject: [PATCH] path join bug , instead of + because get_main_dir is not endswith os.sep --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 1777a77f..680b534e 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1033,7 +1033,7 @@ def stats(): categorys = len(db.session.query(db.Tags).all()) series = len(db.session.query(db.Series).all()) versions = uploader.book_formats.get_versions() - vendorpath = os.path.join(config.get_main_dir + "vendor" + os.sep) + vendorpath = os.path.join(config.get_main_dir, "vendor") if sys.platform == "win32": kindlegen = os.path.join(vendorpath, u"kindlegen.exe") else: