From: Oleg Broytman Date: Tue, 20 May 2014 06:02:34 +0000 (+0400) Subject: Fix paths X-Git-Tag: v0.1~11 X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=commitdiff_plain;h=2048bdab9fd223397272450758514bc962e8eb30 Fix paths --- diff --git a/search-tags.py b/search-tags.py index afdd6c4..d1bc93e 100755 --- a/search-tags.py +++ b/search-tags.py @@ -46,7 +46,7 @@ else: if posts: _posts = [] for suburl, title in posts: - _posts.append('%s' % (suburl, title)) + _posts.append('%s' % (suburl, title)) body = "
\n".join(_posts) else: body = "îÅ ÎÁÊÄÅÎÏ ÎÉ ÏÄÎÏÊ ÚÁÐÉÓÉ." diff --git a/tags.py b/tags.py index 7bfc95e..d8a14f4 100644 --- a/tags.py +++ b/tags.py @@ -6,7 +6,7 @@ except ImportError: import pickle try: - blog_file = open(blog_filename, "rb") + blog_file = open('../../../../phdru.name/ru/' + blog_filename, "rb") except IOError: blog_dict = {} else: