1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Fix bug when specifying cassette path containing cassette_library_dir

This commit is contained in:
Chase Sterling
2015-05-15 19:07:18 -04:00
parent 5fc33c7e70
commit 32c687522d

View File

@@ -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