[displaymanager] PEP8ify it

This commit is contained in:
Philip 2017-06-28 16:21:16 +02:00
parent b3488f8e85
commit bccb9443b0

View File

@ -465,14 +465,15 @@ def run():
# configure first found lightdm-greeter
for entry in os.scandir(greeter_path):
if entry.name.endswith('.desktop') and not greeter_configured:
if entry.name.endswith('.desktop') \
and not greeter_configured:
greeter = entry.name.split('.')[0]
libcalamares.utils.debug(
"configure {!s}".format(greeter)
)
os.system(
"sed -i -e \"s/^.*greeter-session=.*/greeter-session="
"{!s}/\" {!s}".format(
"sed -i -e \"s/^.*greeter-session=.*"
"/greeter-session="{!s}/\" {!s}".format(
greeter,
lightdm_conf_path
)