X Tutup
Skip to content

Commit 2a1d40b

Browse files
committed
🚧 manipulate sys.path to prefer vendor urllib3
python-telegram-bot#533
1 parent 1d4464d commit 2a1d40b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

telegram/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"""A library that provides a Python interface to the Telegram Bot API"""
2020

2121
from sys import version_info
22+
import sys
23+
import os
24+
25+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'vendor', 'urllib3'))
2226

2327
from .base import TelegramObject
2428
from .user import User

0 commit comments

Comments
 (0)
X Tutup