Skip to content

Commit 222f1d2

Browse files
AghaFarokhAghaFarokh
authored andcommitted
Fix PyInstaller entry point: use absolute import to avoid relative import error on Windows
Made-with: Cursor
1 parent c195346 commit 222f1d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

_entry.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from tracev2ray.main import main
2+
3+
main()

build.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
block_cipher = None
88

99
a = Analysis(
10-
['tracev2ray/__main__.py'],
10+
['_entry.py'],
1111
pathex=[],
1212
binaries=[],
1313
datas=[],

0 commit comments

Comments
 (0)