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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Absolute directory of a script given its __file__ value

        def here(__file__):
    '''Absolute directory of a script given its __file__ value'''
    return os.path.dirname(os.path.realpath(__file__))

src/k/m/kmeans-0.2.2/kmeans/__init__.py   kmeans(Download)
import ctypes
import random
from kmeans.util import here, so_path
from ctypes import Structure, c_int, byref
_here = here(__file__)