David Marker wrote:
What I did for the filemerge utility was to use a relative path like this:

   import sys
   import os

   sys.path.insert(1, '%s/../lib/python' % (os.path.dirname(sys.argv[0])))

That may work, yes.  I was just aiming to be more explicit.
(the balance between working, and not picking up bits you don't expect).

Since pkgadd has mtimes of my *.pyc files <= mtimes of my *.py files I can even see exactly how it found the module as python complains.

You'll need to fix that, or a root user running your tools will overwrite the pyc's, and annoy the package tools (and me, but mainly the package tools)

-- Rich

_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to