Fix config path
Use current working directory
This commit is contained in:
+3
-3
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user