Skip to content

Commit 6d799a6

Browse files
committed
Bundling sip
1 parent 06ce5b1 commit 6d799a6

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

PyQt5/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1717

1818
import os
19+
import sys
20+
21+
# Expose sip to PYTHONPATH
22+
dirname = os.path.dirname(__file__)
23+
sys.path.insert(0, dirname)
1924

2025
# Expose binaries to PATH
2126
sep = ';' if os.name == 'nt' else ':'
22-
dirname = os.path.dirname(__file__)
2327
os.environ['PATH'] += sep + dirname
2428

2529
# Expose platform plugins

sip.pyd renamed to PyQt5/sip.pyd

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)