From 4ae63030530e7572894468685b2937ad853cd46c Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 8 Oct 2016 15:08:30 +0200 Subject: [PATCH] Open self.css from absolute path --- scripts/boxesserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/boxesserver b/scripts/boxesserver index 196e0ba..16b6339 100755 --- a/scripts/boxesserver +++ b/scripts/boxesserver @@ -4,11 +4,11 @@ import sys import argparse import cgi import tempfile -import os +import os.path import threading import time -css = (open('self.css').read()) +css = (open(os.path.join(os.path.dirname(__file__), 'self.css')).read()) # Python 2 vs Python 3 compat