From: Chase Sterling Date: Fri, 15 May 2015 23:07:18 +0000 (-0400) Subject: Fix bug when specifying cassette path containing cassette_library_dir X-Git-Tag: v1.5.2~1^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=32c687522ddf186eafe24447766d0b78c4a38ca7;p=vcrpy.git Fix bug when specifying cassette path containing cassette_library_dir --- 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