and now, also py2exe compiles fine :) (on Windows)

This commit is contained in:
Filippo Valsorda 2012-12-07 12:04:52 +01:00
parent a5741a3f5e
commit fec89790b1
2 changed files with 23 additions and 20 deletions

View file

@ -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__))))