protect main
This commit is contained in:
parent
a0916ed6bd
commit
22c06a48e1
1 changed files with 17 additions and 13 deletions
|
@ -5,6 +5,7 @@ from location import get_logger, get_locations, iter_locations, get_groups
|
||||||
|
|
||||||
from kython.klogging import setup_logzero
|
from kython.klogging import setup_logzero
|
||||||
|
|
||||||
|
def main():
|
||||||
logger = get_logger()
|
logger = get_logger()
|
||||||
setup_logzero(logger, level=logging.INFO)
|
setup_logzero(logger, level=logging.INFO)
|
||||||
|
|
||||||
|
@ -22,3 +23,6 @@ else:
|
||||||
for p in get_groups(cached=True):
|
for p in get_groups(cached=True):
|
||||||
print(p)
|
print(p)
|
||||||
# TODO need datetime!
|
# TODO need datetime!
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue