diff options
author | Prashanth Pai <ppai@redhat.com> | 2016-07-04 19:43:11 +0530 |
---|---|---|
committer | Thiago da Silva <thiago@redhat.com> | 2016-08-10 08:27:20 -0700 |
commit | e482e747f6715d56b3cf6b220c5447de95858bee (patch) | |
tree | d0ab123e40d644bf7dd8dcd6985c80e41f723284 /doc/markdown/quick_start_guide.md | |
parent | 07b69f55d4b8212ee6184dc544c38e48f924282f (diff) |
Share gluster package namespace
Problem:
If both gluster-swift and libgfapi-python are installed on the same
system, only one could be imported at a time.
>>> from gluster import swift
>>> from gluster import gfapi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name gfapi
Fix:
Allow sharing of 'gluster' namespace among Python packages that use
them. This was discussed and implemented for libgfapi-python project
(http://review.gluster.org/#/c/9668/) but hadn't been done so far for
other Python projects that use 'gluster' namespace. This change does it
for gluster-swift.
Refer:
https://docs.python.org/2.7/library/pkgutil.html#pkgutil.extend_path
https://stackoverflow.com/questions/1675734
Change-Id: Ic6de294325a065d606604179a7ab84721dd401e0
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Reviewed-on: http://review.gluster.org/14855
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Thiago da Silva <thiago@redhat.com>
Tested-by: Thiago da Silva <thiago@redhat.com>
Diffstat (limited to 'doc/markdown/quick_start_guide.md')
0 files changed, 0 insertions, 0 deletions