summaryrefslogtreecommitdiff
path: root/cgi-bin/path.py
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-01-26 14:12:33 +0800
committerchai <chaifix@163.com>2018-01-26 14:12:33 +0800
commit07704199616228849c17302f21dd5a5a30dbea66 (patch)
treef9a9fe0e84dfb14dbabac2ebeffb8a7ab75bb821 /cgi-bin/path.py
parenta253c861daed44aad49ae9a195c9b0bc5d309134 (diff)
*修改
Diffstat (limited to 'cgi-bin/path.py')
-rw-r--r--cgi-bin/path.py12
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
+