Skip to content

Commit

Permalink
Update version_getter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lufre1 authored May 13, 2024
1 parent eb40755 commit 1b5402f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deployment/version_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

# Construct the filename based on OS name (consider all possibilities)
if current_os == 'windows':
construct_file = "construct_windows-latest.yaml"
construct_file = os.path.join("construct_windows-latest.yaml")
elif current_os == 'linux':
construct_file = "construct_ubuntu-latest.yaml" # Assuming ubuntu-latest for Linux
construct_file = os.path.join("construct_ubuntu-latest.yaml") # Assuming ubuntu-latest for Linux
# Add an else block if you plan to support macOS in the future
else:
raise Exception(f"Unsupported OS: {current_os}")
Expand All @@ -26,5 +26,5 @@

ctor_conf["version"] = runpy.run_path(os.path.join("..", "micro_sam", "__version__.py"))["__version__"]

with open(ctor_fname, "w") as outfile:
with open(construct_file, "w") as outfile:
yaml.dump(ctor_conf, outfile)

0 comments on commit 1b5402f

Please sign in to comment.