def execute_from_command_line(argv=None):
if not argv:<EOL><INDENT>argv = sys.argv<EOL><DEDENT>system_commands = find_commands(system_command_dir())<EOL>project_commands = find_commands(project_command_dir())<EOL>project_package = project_package_name()<EOL>command = argv[<NUM_LIT:1>] if len(argv) > <NUM_LIT:1> else None<EOL>if command in system_commands:<EOL><INDENT>cmd = load_command_class('<STR_LIT>', command)<EOL>cmd.run_from_argv(argv)<EOL><DEDENT>elif command in project_commands:<EOL><INDENT>cmd = load_command_class(project_package, command)<EOL>cmd.run_from_argv(argv)<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>")<EOL>for name in system_commands:<EOL><INDENT>print("<STR_LIT>".format(name))<EOL><DEDENT>for name in project_commands:<EOL><INDENT>print("<STR_LIT>".format(name))<EOL><DEDENT><DEDENT>
Currently the only entrypoint (manage.py, demosys-admin)