Most of the stuff Brett mentioned there shouldn't be relevant for a
directly executed script - doing
sys.path.remove(os.path.dirname(os.path.abspath(__file__)) should be
pretty robust in any scenario.
> I'm amazed actually that there's no way to sayYou'd think that, but then you'd look at getpath.c and run away (or
> "don't add the script location to sys.path", even as a command line option.
> It seems like the sort of thing you'd want to make scripts robust, a bit
> like -S and -E.
write something like PEP 432, as I did) :P