diff --git a/conf/apps/deep/arbitrary/path/hal.py b/conf/apps/globals/hal.py similarity index 100% rename from conf/apps/deep/arbitrary/path/hal.py rename to conf/apps/globals/hal.py diff --git a/conf/apps/globals/utils.py b/conf/apps/globals/utils.py new file mode 100644 index 0000000..894e63b --- /dev/null +++ b/conf/apps/globals/utils.py @@ -0,0 +1,8 @@ +CONSTANTS = { + 'A': 1, + 'B': 2, + 'C': 3 +} + +def utility_function(): + return 123, 456 diff --git a/conf/apps/perimeter.py b/conf/apps/perimeter.py index 1803590..d95f3af 100644 --- a/conf/apps/perimeter.py +++ b/conf/apps/perimeter.py @@ -1,8 +1,9 @@ from appdaemon.adapi import ADAPI import hal -import statemachine +# import statemachine import rules +import globals.utils class Perimeter(ADAPI): @@ -11,3 +12,4 @@ class Perimeter(ADAPI): self.rules = rules.Rule1('abc'), rules.Rule2(123) self.log(f'Initialized perimeter: {self.hal.args}') self.log(f'Rules: {self.rules}') + self.log(f'{globals.utils.CONSTANTS}')