From 32c687522ddf186eafe24447766d0b78c4a38ca7 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Fri, 15 May 2015 19:07:18 -0400 Subject: [PATCH] Fix bug when specifying cassette path containing cassette_library_dir --- vcr/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vcr/config.py b/vcr/config.py index 6a5de5b..fb03136 100644 --- a/vcr/config.py +++ b/vcr/config.py @@ -120,6 +120,7 @@ class VCR(object): def add_cassette_library_dir(path): if not path.startswith(cassette_library_dir): return os.path.join(cassette_library_dir, path) + return path path_transformer = compose(add_cassette_library_dir, path_transformer) elif not func_path_generator: # If we don't have a library dir, use the functions