From 2702fb96f49e7ea4900ec26cbefe33837fba2ac7 Mon Sep 17 00:00:00 2001 From: Mikhail Gordeev Date: Mon, 4 Nov 2019 21:37:18 +0300 Subject: [PATCH] Fix ensure_dirs to work with paths --- cloud-build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-build.py b/cloud-build.py index b0b388f..da4c046 100755 --- a/cloud-build.py +++ b/cloud-build.py @@ -180,7 +180,7 @@ class CB: for attr in dir(self): if attr.endswith('_dir'): value = getattr(self, attr) - if isinstance(value, str): + if isinstance(value, str) or isinstance(value, os.PathLike): os.makedirs(value, exist_ok=True) for branch in self.branches: os.makedirs(self.images_dir / branch, exist_ok=True)