From 64fc92ee1c4de7da7ae327d947524669d56d49cb Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Fri, 22 Nov 2024 12:31:53 -0500 Subject: [PATCH] add conditional import to support conda package manager --- snakebids/io/yaml.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snakebids/io/yaml.py b/snakebids/io/yaml.py index 1af98d3a..9fc43748 100644 --- a/snakebids/io/yaml.py +++ b/snakebids/io/yaml.py @@ -2,7 +2,10 @@ from pathlib import Path, PosixPath, WindowsPath from typing import Any, OrderedDict -from ruamel.yaml import YAML, Dumper +try: + from ruamel.yaml import YAML, Dumper +except ImportError: + from ruamel_yaml import YAML, Dumper def get_yaml_io():