rally/rally-jobs/plugins/test_relative_import/zzz.py
Boris Pavlovic 6bb572e046 Fix rally plugins relative imports
We are not able to use relative imports for plugins that are
outside of rally package.

To fix this we should add to sys.path all directories with Rally
plugins.

This is quite easy fix. But in any case it includes functional test
that checks that this actually works in real life.

+ Fix of Rally gates to copy whole tree not just *.py files from
  rally-jobs/plugins/

Change-Id: Ie53dc2ba5c32a5e83d84d0ea5703e2e04b10ff33
Closes-bug: #1446923
2015-04-22 11:59:40 +03:00

6 lines
120 B
Python

# This module is used just for test that relative imports work well
def some_very_important_function():
return 42