On 30 September 2014 15:45, Daniel Holth <dho...@gmail.com> wrote:
> Or you could just create a Python package that only contains the dll,
> and depend on it from your others.

The problem is getting the DLL on PATH.

What you could do is distribute a package containing:

1. The dll
2. An __init__.py that adds the package directory (where the DLL is)
to os.environ['PATH'].

If you import this package before any of the ones that depend on the
DLL (or even in the __init__ of those packages) then you should have
PATH set up correctly, and things will work as you need.

I think this works, although I will admit it feels like a bit of a hack to me.
Paul
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to