try:
    if sys.frozen or sys.importers:
        SCRIPT_ROOT = os.path.dirname(sys.executable)
except AttributeError:
    SCRIPT_ROOT = os.path.dirname(os.path.realpath(__file__))
how can i get the executable's current directory in py2exe?