File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from pathlib import Path
1414
1515import logistro
16- from platformdirs import PlatformDirs
1716
1817from choreographer .cli .defaults import default_download_path
1918
@@ -49,12 +48,7 @@ def get_chrome_download_path() -> Path | None:
4948 if not _chrome_platform_detected :
5049 return None
5150
52- _default_exe_path = (
53- Path (
54- PlatformDirs ("choreographer" , "plotly" ).user_data_dir ,
55- )
56- / "deps"
57- )
51+ _default_exe_path = default_download_path
5852 _default_exe_path .mkdir (parents = True , exist_ok = True )
5953
6054 if platform .system ().startswith ("Linux" ):
Original file line number Diff line number Diff line change 22
33from pathlib import Path
44
5- default_download_path = Path (__file__ ).resolve ().parent / "browser_exe"
5+ from platformdirs import PlatformDirs
6+
7+ default_download_path = (
8+ Path (
9+ PlatformDirs ("choreographer" , "plotly" ).user_data_dir ,
10+ )
11+ / "deps"
12+ )
613"""The path where we download chrome if no path argument is supplied."""
You can’t perform that action at this time.
0 commit comments