Detect wrong Python module structure
Detect wrong Python module structure

If, for one reason or another, a module named "ganeti.ganeti" can be
succesfully imported (e.g. through a symlink in the wrong place), error
which are diffcult to debug can occur. This piece of code tests for the
unlikely case of that happening.

Signed-off-by: Michael Hanselmann <68b67885ff74281219b4a4be33cc20fd45078d7c@google.com>
Reviewed-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>

ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,mbakke/ganeti,grnet/snf-ganeti,mbakke/ganeti,ganeti/ganeti,apyrgio/snf-ganeti,ganeti/ganeti,grnet/snf-ganeti,onponomarev/ganeti,leshchevds/ganeti,yiannist/ganeti,andir/ganeti,apyrgio/ganeti,mbakke/ganeti,dimara/ganeti,yiannist/ganeti,andir/ganeti,leshchevds/ganeti,bitemyapp/ganeti,ganeti-github-testing/ganeti-test-1,apyrgio/snf-ganeti,yiannist/ganeti,bitemyapp/ganeti,dimara/ganeti,apyrgio/ganeti,leshchevds/ganeti,andir/ganeti,ganeti/ganeti