hydraveil-gui/gui/v2/infrastructure/folders.py

14 lines
345 B
Python

class FolderStash:
"""Singleton to avoid having to data tramp the folder path"""
_instance = None
def __new__(cls):
if cls._instance is None:
cls._instance = super(FolderStash, cls).__new__(cls)
cls._instance.gui_dir = None
cls._instance.font_path = None
return cls._instance