Skip to content

Commit a2c3012

Browse files
committed
fix default windows ipc provider path
1 parent 5f1d4d0 commit a2c3012

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/providers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ IPCProvider
174174

175175
- On Linux and FreeBSD: ``~/.ethereum/geth.ipc``
176176
- On Mac OS: ``~/Library/Ethereum/geth.ipc``
177-
- On Windows: ``\\\.\pipe\geth.ipc``
177+
- On Windows: ``\\.\pipe\geth.ipc``
178178

179179

180180
WebsocketProvider

newsfragments/3058.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed default windows IPC provider path to work with python 3.11

web3/providers/ipc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_default_ipc_path() -> Optional[str]:
102102
return None
103103

104104
elif sys.platform == "win32":
105-
ipc_path = os.path.join("\\\\", ".", "pipe", "geth.ipc")
105+
ipc_path = r"\\.\pipe\geth.ipc"
106106
if os.path.exists(ipc_path):
107107
return ipc_path
108108
return None

0 commit comments

Comments
 (0)