Skip to content

Commit c5cb960

Browse files
committed
fix path
1 parent 6417d4f commit c5cb960

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

utilities/scripts/destroy_unused_workspaces.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ def set_env(aws_profile):
2929
# Create the path to the terraform directory
3030
current_directory = os.path.dirname(os.path.abspath(__file__))
3131
# Construct the path to the parent directory
32-
parent_directory = os.path.join(current_directory, "..")
32+
parent_directory = os.path.join(current_directory, "../..")
3333
# Construct the path to the "terraform" directory
34-
terraform_directory = os.path.join(parent_directory, "terraform")
34+
terraform_directory = os.path.join(parent_directory, "infrastructure/terraform")
3535
# Change the working directory to the "terraform" directory
3636
os.chdir(terraform_directory)
3737
os.environ["AWS_PROFILE"] = aws_profile
3838
# Now you are in the terraform directory
3939
print("Terraform Directory:", os.getcwd())
40+
exit
4041

4142

4243
def list_pr_workspaces(prefix):

0 commit comments

Comments
 (0)