Refactor Backend and config file operations

This commit is contained in:
miruka
2019-07-18 20:30:41 -04:00
parent 31184071db
commit d597e1dda8
9 changed files with 124 additions and 87 deletions

13
src/python/utils.py Normal file
View File

@@ -0,0 +1,13 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
from enum import Enum
from enum import auto as autostr
auto = autostr # pylint: disable=invalid-name
class AutoStrEnum(Enum):
@staticmethod
def _generate_next_value_(name, *_):
return name