From 07704199616228849c17302f21dd5a5a30dbea66 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 26 Jan 2018 14:12:33 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cgi-bin/path.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cgi-bin/path.py (limited to 'cgi-bin/path.py') 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 + -- cgit v1.1-26-g67d0