()
Append ./build/lib.<platform> in case we're running in the build dir
    (especially for Guido :-)
Append ./build/lib.<platform> in case we're running in the build dir
    (especially for Guido :-)
Append . / build / lib . <platform > in case we re running in the build dir ( especially for Guido : - )
def addbuilddir():
    """Append ./build/lib.<platform> in case we're running in the build dir
    (especially for Guido :-)"""
    from distutils.util import get_platform

    s = "build/lib.{}-{:.3}".format(get_platform(), sys.version)
    if hasattr(sys, "gettotalrefcount"):
        s += "-pydebug"
    s = os.path.join(os.path.dirname(sys.path[-1]), s)
    sys.path.append(s)
def addbuilddir ( ) : from distutils . util import get_platform s = "build/lib.{}-{:.3}" . format ( get_platform ( ) , sys . version ) if hasattr ( sys , "gettotalrefcount" ) : s += "-pydebug" s = os . path . join ( os . path . dirname ( sys . path [ - 1 ] ) , s ) sys . path . append ( s )