Open self.css from absolute path

This commit is contained in:
Florian Festi 2016-10-08 15:08:30 +02:00
parent 07df27fa48
commit 4ae6303053
1 changed files with 2 additions and 2 deletions

View File

@ -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