summaryrefslogtreecommitdiff
path: root/cgi-bin/path.py
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-13 21:53:49 +0800
committerchai <chaifix@163.com>2018-07-13 21:53:49 +0800
commit7ca80e57f06922e464626c7a6a1d7965e716b53f (patch)
treebda9271234720424b7dfc5c2d25b9df4ba3d01df /cgi-bin/path.py
parent181b206863d3765fe5343ceea8e1e00e52ffba9e (diff)
Diffstat (limited to 'cgi-bin/path.py')
-rw-r--r--cgi-bin/path.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/cgi-bin/path.py b/cgi-bin/path.py
deleted file mode 100644
index e4ad756..0000000
--- a/cgi-bin/path.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-import config
-from config import Config
-
-root = Config.get("route", "url")
-imgsDir = Config.get("route", "images")
-templDir = Config.get("route", "templates")
-
-class Path(object):
- # 拼接url
- def url(path):
- return root + '/' + path
-
- # 保存的图片路径
- def img(imgFile):
- return root + imgsDir + '/' + imgFile
-
- # html模板路径
- def template(templ):
- return templDir + '/' + templ