From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Cc: Juan Quintela <quintela@redhat.com>,
Amit Shah <amit.shah@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
"Daniel P. Berrange" <berrange@redhat.com>
Subject: [Qemu-devel] [PATCH v1 1/6] scripts: add __init__.py file to scripts/qmp/
Date: Thu, 5 May 2016 15:27:55 +0100 [thread overview]
Message-ID: <1462458480-20555-2-git-send-email-berrange@redhat.com> (raw)
In-Reply-To: <1462458480-20555-1-git-send-email-berrange@redhat.com>
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 <berrange@redhat.com>
---
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
next prev parent reply other threads:[~2016-05-05 14:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 14:27 [Qemu-devel] [PATCH v1 0/6] A migration performance testing framework Daniel P. Berrange
2016-05-05 14:27 ` Daniel P. Berrange [this message]
2016-05-05 14:27 ` [Qemu-devel] [PATCH v1 2/6] scripts: add a 'debug' parameter to QEMUMonitorProtocol Daniel P. Berrange
2016-05-05 14:27 ` [Qemu-devel] [PATCH v1 3/6] scripts: refactor the VM class in iotests for reuse Daniel P. Berrange
2016-05-05 14:27 ` [Qemu-devel] [PATCH v1 4/6] scripts: set timeout when waiting for qemu monitor connection Daniel P. Berrange
2016-05-05 14:27 ` [Qemu-devel] [PATCH v1 5/6] scripts: ensure monitor socket has SO_REUSEADDR set Daniel P. Berrange
2016-05-23 7:34 ` Amit Shah
2016-05-05 14:28 ` [Qemu-devel] [PATCH v1 6/6] tests: introduce a framework for testing migration performance Daniel P. Berrange
2016-05-05 15:39 ` [Qemu-devel] [PATCH v1 0/6] A migration performance testing framework Dr. David Alan Gilbert
2016-05-09 15:01 ` Daniel P. Berrange
2016-05-09 15:36 ` Dr. David Alan Gilbert
2016-05-06 1:33 ` Li, Liang Z
2016-05-06 10:45 ` Amit Shah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462458480-20555-2-git-send-email-berrange@redhat.com \
--to=berrange@redhat.com \
--cc=amit.shah@redhat.com \
--cc=dgilbert@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.