Which is an exact copy of manage.py, the program that manages our rpc server, which is a django application. Again. A little duplication here is acceptable until we figure out how to deal with backwards compatibility.
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]> --- frontend/autotest-manage-rpc-server | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100755 frontend/autotest-manage-rpc-server diff --git a/frontend/autotest-manage-rpc-server b/frontend/autotest-manage-rpc-server new file mode 100755 index 0000000..faf9daf --- /dev/null +++ b/frontend/autotest-manage-rpc-server @@ -0,0 +1,12 @@ +#!/usr/bin/env python +import common +from django.core.management import execute_manager +try: + import settings # Assumed to be in the same directory. +except ImportError: + import sys + sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) + sys.exit(1) + +if __name__ == "__main__": + execute_manager(settings) -- 1.7.7.5 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
