diff options
author | chai <chaifix@163.com> | 2018-01-26 14:12:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-01-26 14:12:33 +0800 |
commit | 07704199616228849c17302f21dd5a5a30dbea66 (patch) | |
tree | f9a9fe0e84dfb14dbabac2ebeffb8a7ab75bb821 /cgi-bin/path.py | |
parent | a253c861daed44aad49ae9a195c9b0bc5d309134 (diff) |
*修改
Diffstat (limited to 'cgi-bin/path.py')
-rw-r--r-- | cgi-bin/path.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cgi-bin/path.py b/cgi-bin/path.py new file mode 100644 index 0000000..99152ce --- /dev/null +++ b/cgi-bin/path.py @@ -0,0 +1,12 @@ +dir = "C:/Users/chaifeixiang/Documents/python/issues/html/" + +class Path(object): + def full(p): + return dir + p + + def url(p): + return "/" + p + + def img(p): + return dir + 'imgs/' + p + |