diff --git a/sdk/python/feast/templates/cassandra/bootstrap.py b/sdk/python/feast/templates/cassandra/bootstrap.py index 33385141145..fa70917914f 100644 --- a/sdk/python/feast/templates/cassandra/bootstrap.py +++ b/sdk/python/feast/templates/cassandra/bootstrap.py @@ -275,9 +275,7 @@ def bootstrap(): # example_repo.py example_py_file = repo_path / "example_repo.py" - replace_str_in_file( - example_py_file, "%PARQUET_PATH%", str(driver_stats_path.relative_to(repo_path)) - ) + replace_str_in_file(example_py_file, "%PARQUET_PATH%", str(driver_stats_path)) # store config yaml, interact with user and then customize file: settings = collect_cassandra_store_settings() diff --git a/sdk/python/feast/templates/hazelcast/bootstrap.py b/sdk/python/feast/templates/hazelcast/bootstrap.py index 7a2b49d2493..e5018e4fe02 100644 --- a/sdk/python/feast/templates/hazelcast/bootstrap.py +++ b/sdk/python/feast/templates/hazelcast/bootstrap.py @@ -165,9 +165,7 @@ def bootstrap(): # example_repo.py example_py_file = repo_path / "example_repo.py" - replace_str_in_file( - example_py_file, "%PARQUET_PATH%", str(driver_stats_path.relative_to(repo_path)) - ) + replace_str_in_file(example_py_file, "%PARQUET_PATH%", str(driver_stats_path)) # store config yaml, interact with user and then customize file: settings = collect_hazelcast_online_store_settings() diff --git a/sdk/python/feast/templates/hbase/bootstrap.py b/sdk/python/feast/templates/hbase/bootstrap.py index 94be8e441da..125eb7c2e72 100644 --- a/sdk/python/feast/templates/hbase/bootstrap.py +++ b/sdk/python/feast/templates/hbase/bootstrap.py @@ -23,9 +23,7 @@ def bootstrap(): driver_df.to_parquet(path=str(driver_stats_path), allow_truncated_timestamps=True) example_py_file = repo_path / "example_repo.py" - replace_str_in_file( - example_py_file, "%PARQUET_PATH%", str(driver_stats_path.relative_to(repo_path)) - ) + replace_str_in_file(example_py_file, "%PARQUET_PATH%", str(driver_stats_path)) if __name__ == "__main__": diff --git a/sdk/python/feast/templates/local/bootstrap.py b/sdk/python/feast/templates/local/bootstrap.py index 9f6a5a6c969..e2c1efdbc49 100644 --- a/sdk/python/feast/templates/local/bootstrap.py +++ b/sdk/python/feast/templates/local/bootstrap.py @@ -25,12 +25,8 @@ def bootstrap(): example_py_file = repo_path / "example_repo.py" replace_str_in_file(example_py_file, "%PROJECT_NAME%", str(project_name)) - replace_str_in_file( - example_py_file, "%PARQUET_PATH%", str(driver_stats_path.relative_to(repo_path)) - ) - replace_str_in_file( - example_py_file, "%LOGGING_PATH%", str(data_path.relative_to(repo_path)) - ) + replace_str_in_file(example_py_file, "%PARQUET_PATH%", str(driver_stats_path)) + replace_str_in_file(example_py_file, "%LOGGING_PATH%", str(data_path)) if __name__ == "__main__":