diff options
author | chai <chaifix@163.com> | 2018-07-11 22:04:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-11 22:04:43 +0800 |
commit | d351e45604f192df6ef710d476a8e529fefa73bf (patch) | |
tree | 4ca90a281ecd7ec89f1b010092aa0f5aeec06910 /cgi-bin/path.py | |
parent | 1275e68efa680e55fd29a377c9c58c59bb7f235e (diff) |
update
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 |