Received: from eggs.gnu.org ([2001:4830:134:3::10]:37861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPrVg-0000Uv-85 for qemu-devel@nongnu.org; Wed, 20 Jul 2016 09:26:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPrVd-0003XT-6S for qemu-devel@nongnu.org; Wed, 20 Jul 2016 09:25:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPrVd-0003XN-0c for qemu-devel@nongnu.org; Wed, 20 Jul 2016 09:25:57 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 A1B7AF2621 for ; Wed, 20 Jul 2016 13:25:56 +0000 (UTC) From: "Daniel P. Berrange" Date: Wed, 20 Jul 2016 14:23:08 +0100 Message-Id: <1469020993-29426-2-git-send-email-berrange@redhat.com> In-Reply-To: <1469020993-29426-1-git-send-email-berrange@redhat.com> References: <1469020993-29426-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH v2 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" , Stefan Hajnoczi , "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