scripts: add __init__.py file to scripts/qmp/
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Jul 2016 13:23:08 +0000 (14:23 +0100)
committerAmit Shah <amit.shah@redhat.com>
Fri, 22 Jul 2016 07:53:13 +0000 (13:23 +0530)
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>
Message-Id: <1469020993-29426-2-git-send-email-berrange@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
scripts/qmp/__init__.py [new file with mode: 0644]

diff --git a/scripts/qmp/__init__.py b/scripts/qmp/__init__.py
new file mode 100644 (file)
index 0000000..e69de29