Fix config path

Use current working directory
This commit is contained in:
up-n-atom
2023-11-18 21:42:25 -05:00
committed by GitHub
parent cd6727436d
commit ea6d6b1440
+3 -3
View File
@@ -8,12 +8,12 @@ from . import xmo
def main():
config = dict()
if os.path.isfile('config.yaml'):
with open('config.yaml') as f:
config_path = os.path.join(os.getcwd(), 'config.yaml')
if os.path.isfile(config_path):
with open(config_path) as f:
config = yaml.safe_load(f)
xmo.cli(default_map=config, _anyio_backend='asyncio')
if __name__ == '__main__':
main()