Skip to content

Commit

Permalink
style: format app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
maugde committed Jun 19, 2024
1 parent b4b442e commit 31c05fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/antares_web_installer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def kill_running_server(self) -> None:
Kill the process if so.
"""
for proc in psutil.process_iter(["pid", "name"]):
if 'antareswebserve' in proc.name().lower():
if "antareswebserve" in proc.name().lower():
logger.info(f"Running server '{proc.name()}' (pid={proc.pid}) found. Attempt to stop it.")

running_app = psutil.Process(pid=proc.pid)
Expand Down Expand Up @@ -172,9 +172,11 @@ def create_shortcuts(self):
shortcut_path.unlink(missing_ok=True)

# shortcut generation
logger.info(f"Shortcut will be created in {shortcut_path}, "
f"linked to '{self.server_path}' "
f"and located in '{self.target_dir}' directory.")
logger.info(
f"Shortcut will be created in {shortcut_path}, "
f"linked to '{self.server_path}' "
f"and located in '{self.target_dir}' directory."
)
create_shortcut(
shortcut_path,
exe_path=self.server_path,
Expand Down

0 comments on commit 31c05fb

Please sign in to comment.