summaryrefslogtreecommitdiff
path: root/cgi-bin/path.py
diff options
context:
space:
mode:
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
+