mirroring: Fix import by putting 'api' path first
(imported from commit b35d962d6456f01b97deeeaa328faa03b65494f8)
This commit is contained in:
parent
ac9e3d6483
commit
b971ce4683
2 changed files with 8 additions and 4 deletions
|
@ -774,8 +774,10 @@ if __name__ == "__main__":
|
|||
|
||||
(options, args) = parse_args()
|
||||
|
||||
sys.path[:0] = [options.root_path,
|
||||
os.path.join(options.root_path, 'api'),
|
||||
# The 'api' directory needs to go first, so that 'import humbug' won't pick
|
||||
# up some other directory named 'humbug'.
|
||||
sys.path[:0] = [os.path.join(options.root_path, 'api'),
|
||||
options.root_path,
|
||||
os.path.join(options.root_path, "python-zephyr"),
|
||||
os.path.join(options.root_path, "python-zephyr/build/lib.linux-x86_64-2.6/")]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue