blob: e6f61755597f674139ace079369d999adf918b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- coding: utf-8 -*-
import config
from config import Config
root = Config.get("route", "url")
imgsDir = Config.get("route", "imgs_dir")
templDir = Config.get("route", "templ_dir")
class Path(object):
# 拼接url
def url(path):
return root + path
# 保存的图片路径
def img(imgFile):
return root + imgsDir + imgFile
# html模板路径
def template(templ):
return templDir + templ
|