diff options
Diffstat (limited to 'cgi-bin/path.py')
-rw-r--r-- | cgi-bin/path.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |