We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a4626 commit c42f9cbCopy full SHA for c42f9cb
pebble_tool/commands/sdk/create.py
@@ -100,11 +100,7 @@ def copy_group(group, must_succeed=True):
100
origin_path = extant_path(os.path.join(template_root, x) for x in origins)
101
if origin_path is not None:
102
copied_files += 1
103
- try:
104
- os.makedirs(os.path.dirname(target_path))
105
- except OSError as e:
106
- if e.errno != errno.EEXIST:
107
- raise
+ _mkdirs(target_path)
108
with open(origin_path) as f:
109
template_content = f.read()
110
with open(substitute(target_path), 'w') as f:
0 commit comments