Received: from eggs.gnu.org ([2001:4830:134:3::10]:57157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayKHJ-00022i-MS for qemu-devel@nongnu.org; Thu, 05 May 2016 10:29:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayKH8-00053Q-26 for qemu-devel@nongnu.org; Thu, 05 May 2016 10:29:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayKH7-00050w-Sg for qemu-devel@nongnu.org; Thu, 05 May 2016 10:29:10 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C8C3C7EBCE for ; Thu, 5 May 2016 14:28:58 +0000 (UTC) From: "Daniel P. Berrange" Date: Thu, 5 May 2016 15:27:55 +0100 Message-Id: <1462458480-20555-2-git-send-email-berrange@redhat.com> In-Reply-To: <1462458480-20555-1-git-send-email-berrange@redhat.com> References: <1462458480-20555-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH v1 1/6] scripts: add __init__.py file to scripts/qmp/ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Juan Quintela , Amit Shah , "Dr. David Alan Gilbert" , "Daniel P. Berrange" When searching for modules to load, python will ignore any sub-directory which does not contain __init__.py. This means that both scripts and scripts/qmp/ have to be explicitly added to the python path. By adding a __init__.py file to scripts/qmp, we only need add scripts/ to the python path and can then simply do 'from qmp import qmp' to load scripts/qmp/qmp.py. Signed-off-by: Daniel P. Berrange --- scripts/qmp/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 scripts/qmp/__init__.py diff --git a/scripts/qmp/__init__.py b/scripts/qmp/__init__.py new file mode 100644 index 0000000..e69de29 -- 2.5.5