and now, also py2exe compiles fine :) (on Windows)
This commit is contained in:
parent
a5741a3f5e
commit
fec89790b1
2 changed files with 23 additions and 20 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
import sys
|
||||
|
||||
if __package__ is None:
|
||||
if __package__ is None and not hasattr(sys, "frozen"):
|
||||
import os.path
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue