Fix config path
Use current working directory
This commit is contained in:
+3
-3
@@ -8,12 +8,12 @@ from . import xmo
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
config = dict()
|
config = dict()
|
||||||
if os.path.isfile('config.yaml'):
|
config_path = os.path.join(os.getcwd(), 'config.yaml')
|
||||||
with open('config.yaml') as f:
|
if os.path.isfile(config_path):
|
||||||
|
with open(config_path) as f:
|
||||||
config = yaml.safe_load(f)
|
config = yaml.safe_load(f)
|
||||||
xmo.cli(default_map=config, _anyio_backend='asyncio')
|
xmo.cli(default_map=config, _anyio_backend='asyncio')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user