Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Charles Burton
Gaudi
Commits
8bbc4782
Commit
8bbc4782
authored
Jul 26, 2016
by
Marco Clemencic
Browse files
modified quick-merge to create the destination directory if missing
parent
6cf6ca2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
GaudiPolicy/scripts/quick-merge
View file @
8bbc4782
...
...
@@ -33,9 +33,13 @@ if __name__ == '__main__':
logging
.
error
(
'file %s not found'
,
i
)
sys
.
exit
(
1
)
try
:
# create the destination directory if missing
if
not
os
.
path
.
isdir
(
os
.
path
.
dirname
(
output
)):
os
.
makedirs
(
os
.
path
.
dirname
(
output
))
with
open
(
output
,
'wb'
)
as
out
:
for
input
in
inputs
:
out
.
writelines
(
open
(
input
,
'rb'
))
except
:
os
.
remove
(
output
)
if
os
.
path
.
exists
(
output
):
os
.
remove
(
output
)
raise
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment