Skip to content

Commit

Permalink
Merge pull request #280 from Apricot-S/develop
Browse files Browse the repository at this point in the history
v0.0.4
  • Loading branch information
Apricot-S authored Jul 21, 2024
2 parents f4cabe1 + 4d4b87e commit 5356f3a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "majsoulrpa"
version = "0.0.3"
version = "0.0.4"
description = "A Robotic Process Automation (RPA) framework for Mahjong Soul (雀魂)"
authors = [
{ name = "Apricot S." }
Expand Down
3 changes: 3 additions & 0 deletions src/majsoulrpa/_impl/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def __init__(

self._browser = None
if user_data_dir:
if isinstance(user_data_dir, str):
user_data_dir = Path(user_data_dir)
user_data_dir = user_data_dir.resolve()
self._context = self._context_manager.start().chromium.launch_persistent_context( # noqa: E501
user_data_dir,
args=options,
Expand Down
2 changes: 1 addition & 1 deletion src/majsoulrpa/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.3"
__version__ = "0.0.4"
4 changes: 4 additions & 0 deletions src/majsoulrpa/remote_browser/_remote_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ def launch_remote_browser(
mute_audio_off = None if headless else ["--mute-audio"]

if user_data_dir:
if isinstance(user_data_dir, str):
user_data_dir = Path(user_data_dir)
user_data_dir = user_data_dir.resolve()

with (
sync_playwright() as playwright,
playwright.chromium.launch_persistent_context(
Expand Down

0 comments on commit 5356f3a

Please sign in to comment.