Make --debug-gl have zero runtime cost when absent

This commit is contained in:
Kovid Goyal
2017-09-15 10:45:22 +05:30
parent 44f456089b
commit 9eea178890
5 changed files with 26 additions and 18 deletions
+3 -1
View File
@@ -2,6 +2,8 @@
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
import sys
sys.debug_gl = '--debug-kitty-gl' in sys.argv
from kitty.main import main
from kitty.main import main # noqa
main()