Commit 234bf8f6 authored by Denis Salem's avatar Denis Salem
Browse files

notify flush, remove print in setup

parent f92f3d61
......@@ -21,7 +21,6 @@ from os.path import expanduser, isdir
from os import listdir
from setuptools import setup
dst_themes_path = expanduser('~')+"/.local/share/VenC/themes/"
src_themes_path = "share/themes/"
themes = listdir(src_themes_path)
......@@ -36,7 +35,6 @@ for theme in themes:
else:
dst = dst_themes_path+theme
src_files = [src_themes_path+theme+'/'+filename]
print(dst, src_files)
extra_files.append((
dst,
......
......@@ -29,6 +29,10 @@ from venc2.l10n import messages
blog_configuration = get_blog_configuration()
class VenCServer(http.server.CGIHTTPRequestHandler):
def __init__(self, request, client_address, server):
print(client_address)
super().__init__(request, client_address, server)
def do_GET(self):
self.path = urllib.parse.unquote(self.path, encoding=blog_configuration["path_encoding"])
super().do_GET()
......@@ -45,7 +49,6 @@ def serv_blog(argv=list()):
except ValueError:
die(messages.server_port_is_invalid.format(blog_configuration["server_port"]))
except KeyboardInterrupt:
httpd.server_close()
......
......@@ -41,7 +41,7 @@ def die(msg, color="RED", extra=""):
# Being verborse is nice, with colours it's better
def notify(msg, color="GREEN"):
print(get_formatted_message(msg, color))
print(get_formatted_message(msg, color), flush=True)
# Take care of setting up colours in printed out message
def get_formatted_message(msg, color="GREEN", prompt="VenC: "):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment