mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
(configd, templates) copy parents permissions
This commit is contained in:
parent
fb91e313ef
commit
f85e688c3e
@ -36,6 +36,7 @@ import traceback
|
||||
import copy
|
||||
import codecs
|
||||
import jinja2
|
||||
import shutil
|
||||
import addons.template_helpers
|
||||
|
||||
__author__ = 'Ad Schellevis'
|
||||
@ -280,6 +281,8 @@ class Template(object):
|
||||
if last_bytes_template in ('\n', '\r'):
|
||||
f_out.write('\n')
|
||||
f_out.close()
|
||||
# copy parents file permissions
|
||||
shutil.copymode(os.path.dirname(filename), filename)
|
||||
|
||||
result.append(filename)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user