1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00

Fix formatting to satisfy flake8

This commit is contained in:
Andrew Leech 2015-09-28 14:08:41 +10:00
parent f44ae6d85f
commit a145bd12f6

View File

@ -34,8 +34,11 @@ from . import CSS
level = LOGGER.level
LOGGER.setLevel(logging.ERROR)
root = os.path.dirname(sys.executable) if hasattr(sys, "frozen") else os.path.dirname(__file__)
HTML5_UA_STYLESHEET = CSS(filename= os.path.join(root, 'css', 'html5_ua.css'))
if hasattr(sys, "frozen"):
root = os.path.dirname(sys.executable)
else:
root = os.path.dirname(__file__)
HTML5_UA_STYLESHEET = CSS(filename=os.path.join(root, 'css', 'html5_ua.css'))
LOGGER.setLevel(level)