summaryrefslogtreecommitdiff
path: root/koopatlas.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xkoopatlas.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/koopatlas.py b/koopatlas.py
index 423df0a..b08f8b5 100755
--- a/koopatlas.py
+++ b/koopatlas.py
@@ -5,7 +5,13 @@
# Started 2nd November 2011
import os.path, sys
-sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
+
+if hasattr(sys, 'frozen'):
+ sys.path.append(os.path.join(os.path.dirname(sys.executable), 'src'))
+else:
+ sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
+
+
from common import *