History log of /external/autotest/frontend/common.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1b87bc53ddf0a18e85df7a862df9d559c8bec438 04-Apr-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Modify all the common.py to set up an autotest_lib.* namespace as well
as all the common.* module setup that it normally does.

This should make it easier to replace any funky sys.path code with
code that actually does the right thing, and imports modules using
absolute paths; as long as our entry points import common, code should
be able to count on imports like "import autotest_lib.tko.parse" or
"import autotest_lib.server.autotest" working, without having to
fiddle with sys.path themselves.

The client/bin/common.py is an exception; we can't assume anything
other than the client/ directory is present, so it only adds the
autotest_lib.client.* namespace. So code within the client
itself should only do absolute imports from the client directory
downward, not from the top-level dir downward.

We'll probably need to add __init__.py files to some directories to
allow us to import from them as packages, but that can be done on
an as-needed basis when we write import statements that require them.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1397 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/common.py
4a3a08de5dc7d63a53dae25b504d167848dfdd84 03-Apr-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Forgot to add this file.


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1395 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/common.py