Skip to content

Commit

Permalink
Merge pull request #25 from Snowflake-Labs/jhilgart/fix-write-path
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
sfc-gh-jhilgart authored May 3, 2024
2 parents 0b32e44 + 96c8e6f commit d30c751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions semantic_model_generator/generate_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ def generate_base_semantic_model_from_snowflake(
if not output_yaml_path:
file_name = f"{formatted_datetime}_{_to_snake_case(semantic_model_name)}.yaml"
if os.path.exists("semantic_model_generator/output_models"):
output_yaml_path = f"semantic_model_generator/output_models/{file_name}"
write_path = f"semantic_model_generator/output_models/{file_name}"
else:
output_yaml_path = f"./{file_name}"
write_path = f"./{file_name}"
else: # Assume user gives correct path.
write_path = output_yaml_path
context = raw_schema_to_semantic_context(
Expand Down

0 comments on commit d30c751

Please sign in to comment.