Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Mar 28, 2024
1 parent fcdff71 commit f56a7bd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scompose/project/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,10 @@ def build(self, working_dir):

# Case 2: Given a recipe
elif self.recipe is not None:
# Change directory to the context
print(f"Context is {self.context}")
# Change directory to the context if it exists
context = os.path.abspath(self.context)
print(f"Context is {context}")
os.chdir(context)
if os.path.exists(context):
os.chdir(context)

# The recipe is expected to exist in the context folder
if not os.path.exists(self.recipe):
Expand Down

0 comments on commit f56a7bd

Please sign in to comment.