2021-07-23 10:04:43 -04:00
|
|
|
# Copyright 2021 (c) Anna Schumaker.
|
2021-07-23 11:27:04 -04:00
|
|
|
from . import window
|
|
|
|
from lib import version
|
|
|
|
from gi.repository import Gtk
|
|
|
|
import pathlib
|
|
|
|
|
|
|
|
IconPath = pathlib.Path("data/").absolute()
|
|
|
|
|
|
|
|
if version.DEBUG == True:
|
|
|
|
Display = window.Window.get_display()
|
|
|
|
Theme = Gtk.IconTheme.get_for_display(Display)
|
|
|
|
|
|
|
|
paths = Theme.get_search_path()
|
|
|
|
Theme.set_search_path([ str(IconPath) ] + paths)
|