> 
> Welke versie van OSX heeft je collega? Hoe is python 2.6.4 geinstalleerd 
> (installer van python.org, macports, ...)?
> 

is het niet zo dat python in de applicatie zelf wordt meegenomen en dus 
onafhankelijk is van de omgeving ?
er wordt wel gebruik gemaakt van een link naar de libc.dylib
ik vermoed dat de fout bij de stat64 = libc.stat64 optreedt.

is het mogelijk om een lijst van functies in die dynamische bibliotheek op te 
vragen ?



(knip & plak vanaf het internet)



class struct_timespec(Structure):
        _fields_ = [('tv_sec', c_long), ('tv_nsec', c_long)]

class struct_stat64(Structure):
        _fields_ = [
        ('st_dev', c_int32),
        ('st_mode', c_uint16),
        ('st_nlink', c_uint16),
        ('st_ino', c_uint64),
        ('st_uid', c_uint32),
        ('st_gid', c_uint32), 
        ('st_rdev', c_int32),
        ('st_atimespec', struct_timespec),
        ('st_mtimespec', struct_timespec),
        ('st_ctimespec', struct_timespec),
        ('st_birthtimespec', struct_timespec),
        ('dont_care', c_uint64 * 8)
    ]

libc = CDLL('libc.dylib')
stat64 = libc.stat64
stat64.argtypes = [c_char_p, POINTER(struct_stat64)]


def get_creation_time(path):
        buf = struct_stat64()
        rv = stat64(path, pointer(buf))
        if rv != 0:
                raise OSError("Couldn't stat file %r" % path)
        return buf.st_birthtimespec.tv_sec








_______________________________________________
Python-nl mailing list
Python-nl@python.org
http://mail.python.org/mailman/listinfo/python-nl

Antwoord per e-mail aan