#!/usr/bin/python
from mooix import *
import commands, os

# Like perl, LD_PRELOAD may be set, but it won't be visible to
# embedded python.
# Unlike perl, python does not seem to have a a simple shell capture
# method. `sheesh` -- JEH
# RTFM -- NDB ;-)
# RTFM yourself, trailing newlines are auto-removed ;-) -- JEH
preload = commands.getoutput('echo $LD_PRELOAD')

this.Return( (os.environ["METHOD"],
              os.environ["MOOSOCK"],
	      preload,
              os.environ["THIS"]) );
