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:
parent
f44ae6d85f
commit
a145bd12f6
@ -34,8 +34,11 @@ from . import CSS
|
|||||||
level = LOGGER.level
|
level = LOGGER.level
|
||||||
LOGGER.setLevel(logging.ERROR)
|
LOGGER.setLevel(logging.ERROR)
|
||||||
|
|
||||||
root = os.path.dirname(sys.executable) if hasattr(sys, "frozen") else os.path.dirname(__file__)
|
if hasattr(sys, "frozen"):
|
||||||
HTML5_UA_STYLESHEET = CSS(filename= os.path.join(root, 'css', 'html5_ua.css'))
|
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)
|
LOGGER.setLevel(level)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user