From f48fc32cf034f0cfe798a70167ff6559587d6d48 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Thu, 4 May 2017 23:09:25 +0200 Subject: [PATCH] Link to self.css instead of including it in every page --- scripts/boxesserver | 21 +++++---------------- {scripts => static}/self.css | 0 2 files changed, 5 insertions(+), 16 deletions(-) rename {scripts => static}/self.css (100%) diff --git a/scripts/boxesserver b/scripts/boxesserver index 5e1e7e1..0f172df 100755 --- a/scripts/boxesserver +++ b/scripts/boxesserver @@ -25,10 +25,6 @@ import codecs import mimetypes import re -csspath = os.path.join(os.path.dirname(__file__), 'self.css') -css = codecs.open(csspath, "r", "utf-8").read() - - # Python 2 vs Python 3 compat try: from urllib.parse import unquote_plus @@ -151,11 +147,8 @@ class BServer: def args2html(self, name, box, action=""): result = ["""Boxes - """, name, """ - """, self.scripts % (len(box.argparser._action_groups)-3), """ + +""", self.scripts % (len(box.argparser._action_groups)-3), """ @@ -226,11 +219,7 @@ class BServer: result = [""" Boxes.py - +