def setUp(self):
        """Prepare test environment (basic setup shared by all tests)"""
        
        # Determine where the temp directory is and run the tests there
        self.TempDir = tempfile.gettempdir() + os.sep + 'relpath_tests_dir'
        try:
            shutil.rmtree(self.TempDir)
        except:
            pass
        os.mkdir(self.TempDir)
        os.chdir(self.TempDir)
        # Create directory structure
        os.makedirs('a/b/c/')
        os.makedirs('a1/b1/c1/d1')
        # Create a couple of files to point to
        CreateTempFile('file1')
        CreateTempFile('a/b/file2')
        CreateTempFile('a1/b1/c1/d1/file3')
Prepare test environment (basic setup shared by all tests)
recipes/Python/302594_Another_relative_filepath_script/recipe-302594.py