1. ariovistus
  2. pyd

Source

pyd / examples / hello / test.py

import os.path, sys
import distutils.util

# Append the directory in which the binaries were placed to Python's sys.path,
# then import the D DLL.
libDir = os.path.join('build', 'lib.%s-%s' % (
    distutils.util.get_platform(),
    '.'.join(str(v) for v in sys.version_info[:2])
))
sys.path.append(os.path.abspath(libDir))
print sys.path
import hello
import hello2


try:
    hello.hello()
    hello2.hello()
except Exception, e:
    print e
    print e.__dict__