From 01ee184431e3b7e95cb9cb08f8e44a9ae038e09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Sat, 25 Mar 2017 20:49:42 +0100 Subject: Remove fixed prefix from datadir --- cgi-bin/link.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cgi-bin') diff --git a/cgi-bin/link.py b/cgi-bin/link.py index 9678f6e..a65498d 100644 --- a/cgi-bin/link.py +++ b/cgi-bin/link.py @@ -5,7 +5,7 @@ class Link: def __init__(self, filename=""): if os.path.exists(os.path.realpath(config.datadir)): self.datadir=config.datadir - self.src_datadir="../"+config.datadir + self.src_datadir=config.datadir self.exists="" else: print ("Error: directory "+os.path.realpath(config.datadir)+" does not exist. Check config.py") @@ -29,9 +29,9 @@ class Link: else: cssclass="" if self.detect(target): - return "" + return "" else: - return "" + return "" def timestamp(self, date): if self.detect(date): -- cgit v1.2.3