mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
Fix bug when specifying cassette path containing cassette_library_dir
This commit is contained in:
@@ -120,6 +120,7 @@ class VCR(object):
|
|||||||
def add_cassette_library_dir(path):
|
def add_cassette_library_dir(path):
|
||||||
if not path.startswith(cassette_library_dir):
|
if not path.startswith(cassette_library_dir):
|
||||||
return os.path.join(cassette_library_dir, path)
|
return os.path.join(cassette_library_dir, path)
|
||||||
|
return path
|
||||||
path_transformer = compose(add_cassette_library_dir, path_transformer)
|
path_transformer = compose(add_cassette_library_dir, path_transformer)
|
||||||
elif not func_path_generator:
|
elif not func_path_generator:
|
||||||
# If we don't have a library dir, use the functions
|
# If we don't have a library dir, use the functions
|
||||||
|
|||||||
Reference in New Issue
Block a user