Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
This will get us the program's directory,
even if we are frozen using py2exe

        def module_path():
    """ This will get us the program's directory,
    even if we are frozen using py2exe"""

    if we_are_frozen():
        return os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))

    return os.path.dirname(unicode(__file__, sys.getfilesystemencoding( )))
        


src/u/n/universal_boardgame_client-HEAD/client.py   universal_boardgame_client(Download)
import glob
import os
import pygame
import rabbyt
from py2exeutils import module_path
 
 
rabbyt.data_directory = module_path()
pygame.init()