Skip to content

Commit

Permalink
fix(gui.windows): blocking state while creating shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
maugde committed Aug 5, 2024
1 parent 556f172 commit 26395d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/antares_web_installer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
from platformdirs import user_data_dir

TARGET_DIR = Path(user_data_dir("AntaresWeb", "RTE"))
SRC_DIR = Path("/home/glaudemau/bin/AntaresWeb-ubuntu-v2.17.5/")
SRC_DIR = Path(".")

logger = logging.getLogger(__name__)
4 changes: 2 additions & 2 deletions src/antares_web_installer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pathlib import Path
from shutil import copy2, copytree

if os.name == 'nt':
if os.name == "nt":
from pythoncom import com_error

import httpx
Expand Down Expand Up @@ -235,7 +235,7 @@ def create_shortcuts(self):
description="Launch Antares Web Server in background",
)
except com_error as e:
raise InstallError("Impossible to create a new shortcut: {}".format(e))
logger.error("Impossible to create a new shortcut: {}\nSkip shortcut creation".format(e))
else:
logger.info("Server shortcut was successfully created.")
self.update_progress(100)
Expand Down

0 comments on commit 26395d1

Please sign in to comment.