[prev in list] [next in list] [prev in thread] [next in thread]
List: opensolaris-tools-discuss
Subject: Re: [tools-discuss] Re: [Bug 155] New: scripts need a better way
From: Richard Lowe <richlowe () richlowe ! net>
Date: 2007-02-14 20:39:16
Message-ID: 45D37374.6050209 () richlowe ! net
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic