# -*- coding: utf8 -*-
from os.path import dirname, join, getsize
import sys


def module_path():
    if getattr(sys, 'frozen', False):
        # The application is frozen
        return dirname(sys.executable)
    else:
        # The application is not frozen
        # Change this bit to match where you store your data files:
        return dirname(__file__)


def get_version():
    version_path = join(module_path(), "VERSION")
    version_details = open(version_path).read(getsize(version_path))
    return version_details.split("\n")[0]


version = get_version()


@@ -172,32 +172,37 @@
 %0A        return 
+join(
 dirname(sys.exec
@@ -208,16 +208,27 @@
 cutable)
+, %22tuttle%22)
 %0A    els

Fix version on Windows