Use the correct mode type

bzr-revno: 135
This commit is contained in:
Raoul Snyman 2018-01-28 20:52:43 -07:00
parent 429231d423
commit 22f1c300c7
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def find_modules(importer, module, package):
path = os.path.join(find_modules.root_path, module.replace('.', os.path.sep) + '.rst')
base_path = os.path.basename(path)
if not os.path.exists(base_path):
os.makedirs(base_path, '0755')
os.makedirs(base_path, 0o755)
if package:
with open(os.path.join(path), 'w+') as file:
file.write(PACKAGE_RST.substitute(values))