def load_by_name(name):
if os.path.exists(name):<EOL><INDENT>load_from_path(name)<EOL><DEDENT>else:<EOL><INDENT>__import__(name)<EOL><DEDENT>
Load a spec from either a file path or a fully qualified name.