Skip to content

Commit

Permalink
Fix logic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hartmans committed Feb 4, 2025
1 parent 6584642 commit ab7730a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions carthage/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def __init__(self, name, *,
implementation=None,
**kwargs):
super().__init__(**kwargs)
path = Path(config_layout.image_dir).joinpath(name)
path = Path(self.config_layout.image_dir).joinpath(name)
os.makedirs(path.parent, exist_ok=True)
if not path.exists():
self.clear_stamps_and_cache()
Expand Down Expand Up @@ -519,7 +519,7 @@ async def dynamic_dependencies(self):

@property
def stamp_subdir(self):
return 'libvirt/'+self.path.relative_to('/')
return 'libvirt/'+str(self.path.relative_to('/'))

def close(self, canceled_futures=None):
if self.config_layout.delete_volumes:
Expand Down

0 comments on commit ab7730a

Please sign in to comment.