]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Fix bug when specifying cassette path containing cassette_library_dir
authorChase Sterling <chase.sterling@gmail.com>
Fri, 15 May 2015 23:07:18 +0000 (19:07 -0400)
committerChase Sterling <chase.sterling@gmail.com>
Fri, 15 May 2015 23:07:18 +0000 (19:07 -0400)
vcr/config.py

index 6a5de5bb347edcc00b7f0f45224a1f8f592d3af5..fb0313660042c7fc2ff3fcd51d3094f14ef5356d 100644 (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