mirror of
https://gitlab.com/openlp/documentation.git
synced 2024-12-22 04:22:49 +00:00
Use the correct mode type
bzr-revno: 135
This commit is contained in:
parent
429231d423
commit
22f1c300c7
@ -38,7 +38,7 @@ def find_modules(importer, module, package):
|
|||||||
path = os.path.join(find_modules.root_path, module.replace('.', os.path.sep) + '.rst')
|
path = os.path.join(find_modules.root_path, module.replace('.', os.path.sep) + '.rst')
|
||||||
base_path = os.path.basename(path)
|
base_path = os.path.basename(path)
|
||||||
if not os.path.exists(base_path):
|
if not os.path.exists(base_path):
|
||||||
os.makedirs(base_path, '0755')
|
os.makedirs(base_path, 0o755)
|
||||||
if package:
|
if package:
|
||||||
with open(os.path.join(path), 'w+') as file:
|
with open(os.path.join(path), 'w+') as file:
|
||||||
file.write(PACKAGE_RST.substitute(values))
|
file.write(PACKAGE_RST.substitute(values))
|
||||||
|
Loading…
Reference in New Issue
Block a user