Anna Schumaker
db2d122211
Implements #27 (Check __debug__ constant instead of a .debug file) Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
14 lines
352 B
Python
14 lines
352 B
Python
# Copyright 2021 (c) Anna Schumaker.
|
|
from . import window
|
|
from gi.repository import Gtk
|
|
import pathlib
|
|
|
|
IconPath = pathlib.Path("data/").absolute()
|
|
|
|
if __debug__ == True:
|
|
Display = Gtk.Label().get_display()
|
|
Theme = Gtk.IconTheme.get_for_display(Display)
|
|
|
|
paths = Theme.get_search_path()
|
|
Theme.set_search_path([ str(IconPath) ] + paths)
|