mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 10:25:36 -04:00
Python Better Docstrings
This commit is contained in:
parent
b8b41bdfdd
commit
113d9db7cb
15 changed files with 295 additions and 11 deletions
|
@ -23,6 +23,13 @@ import os
|
|||
|
||||
|
||||
def modify_grub_default(partitions, root_mount_point, distributor):
|
||||
"""
|
||||
|
||||
:param partitions:
|
||||
:param root_mount_point:
|
||||
:param distributor:
|
||||
:return:
|
||||
"""
|
||||
default_dir = os.path.join(root_mount_point, "etc/default")
|
||||
default_grub = os.path.join(default_dir, "grub")
|
||||
distributor_replace = distributor.replace("'", "'\\''")
|
||||
|
@ -95,6 +102,11 @@ def modify_grub_default(partitions, root_mount_point, distributor):
|
|||
|
||||
|
||||
def run():
|
||||
"""
|
||||
|
||||
|
||||
:return:
|
||||
"""
|
||||
partitions = libcalamares.globalstorage.value("partitions")
|
||||
root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
|
||||
branding = libcalamares.globalstorage.value("branding")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue