From d351e45604f192df6ef710d476a8e529fefa73bf Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 11 Jul 2018 22:04:43 +0800 Subject: update --- cgi-bin/path.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cgi-bin/path.py') diff --git a/cgi-bin/path.py b/cgi-bin/path.py index eae5445..e4ad756 100644 --- a/cgi-bin/path.py +++ b/cgi-bin/path.py @@ -9,12 +9,12 @@ templDir = Config.get("route", "templates") class Path(object): # 拼接url def url(path): - return root + path + return root + '/' + path # 保存的图片路径 def img(imgFile): - return root + imgsDir + imgFile + return root + imgsDir + '/' + imgFile # html模板路径 def template(templ): - return templDir + templ + return templDir + '/' + templ -- cgit v1.1-26-g67d0